From d70ba600276dc65fca8376d5bd79d1be27b03db9 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 23 Jun 2011 13:38:31 +0100 Subject: [PATCH] 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 --- dbus/dbus-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.7.4