From: Simon McVittie Date: Thu, 23 Jun 2011 12:38:31 +0000 (+0100) Subject: dbus_message_unref: make an assertion more strict X-Git-Tag: dbus-1.4.14~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d70ba600276dc65fca8376d5bd79d1be27b03db9;p=platform%2Fupstream%2Fdbus.git 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 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38005 --- diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index a59ed9b..d62529c 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) {