soc.2010.detachablepurple: 6d1e4328: Fixed a NULL check.

gillux at soc.pidgin.im gillux at soc.pidgin.im
Thu Aug 12 00:37:08 EDT 2010


----------------------------------------------------------------------
Revision: 6d1e4328e4fb0d31ba08823c2fecb0d7e9c62dbe
Parent:   6cbad3471a0b425ebbe61c8f8d916af10bcf983a
Author:   gillux at soc.pidgin.im
Date:     08/11/10 18:56:37
Branch:   im.pidgin.soc.2010.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/6d1e4328e4fb0d31ba08823c2fecb0d7e9c62dbe

Changelog: 

Fixed a NULL check.

Changes against parent 6cbad3471a0b425ebbe61c8f8d916af10bcf983a

  patched  libpurple/dbus/callback.c

-------------- next part --------------
============================================================
--- libpurple/dbus/callback.c	4b1203681fb0be662149a70de96e4b55071f0681
+++ libpurple/dbus/callback.c	82a73884b9599f7efa395322422e4f4f9d73b138
@@ -87,7 +87,8 @@ purple_dbus_callback_do_uninit(void)
 	PurpleDBusCallbackClass *klass;
 
 	klass = g_type_class_peek(PURPLE_TYPE_DBUS_CALLBACK);
-	g_return_if_fail(klass->instance != NULL);
+	/* True if purple_dbus_callback_get_instance() was never called. */
+	g_return_if_fail(klass != NULL);
 	g_object_unref(klass->instance);
 }
 


More information about the Commits mailing list