diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-06-23 13:38:31 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-07-25 18:09:29 +0100 |
commit | d70ba600276dc65fca8376d5bd79d1be27b03db9 (patch) | |
tree | 9bad55f056db05cbcbc85dc83897ffcab82d3ca6 /dbus/dbus-message.c | |
parent | 0ae863ef164f4ac011888506bf84571f2b201ceb (diff) | |
download | dbus-d70ba600276dc65fca8376d5bd79d1be27b03db9.tar.gz |
dbus_message_unref: make an assertion more strict
We've just decremented the refcount, so it should have been at least 1
before we did that.
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38005
Diffstat (limited to 'dbus/dbus-message.c')
-rw-r--r-- | dbus/dbus-message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index a59ed9bf..d62529cb 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -1549,7 +1549,7 @@ dbus_message_unref (DBusMessage *message) old_refcount = _dbus_atomic_dec (&message->refcount); - _dbus_assert (old_refcount >= 0); + _dbus_assert (old_refcount >= 1); if (old_refcount == 1) { |