From 12d7031c46005be8e18973492585b138d440018c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 23 Jun 2011 13:38:31 +0100 Subject: [PATCH 7/8] 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. --- 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 bd9f9bf..5d324ca 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -1600,7 +1600,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) { -- 1.7.5.4