* dbus/dbus-message.c (dbus_message_get_cached)
(dbus_message_cache_or_finalize): don't mess with message from
message cache outside of the cache lock. Bug #9164 from Jonathan
Matthew.
+2007-07-18 Havoc Pennington <hp@redhat.com>
+
+ * dbus/dbus-message.c (dbus_message_get_cached)
+ (dbus_message_cache_or_finalize): don't mess with message from
+ message cache outside of the cache lock. Bug #9164 from Jonathan
+ Matthew.
+
2007-07-13 Havoc Pennington <hp@redhat.com>
* Add indent-tabs-mode: nil to all file headers.
_dbus_assert (i < MAX_MESSAGE_CACHE_SIZE);
_dbus_assert (message != NULL);
- _DBUS_UNLOCK (message_cache);
-
_dbus_assert (message->refcount.value == 0);
_dbus_assert (message->size_counters == NULL);
+
+ _DBUS_UNLOCK (message_cache);
return message;
}
#endif
out:
- _DBUS_UNLOCK (message_cache);
-
_dbus_assert (message->refcount.value == 0);
+ _DBUS_UNLOCK (message_cache);
+
if (!was_cached)
dbus_message_finalize (message);
}