pidgin: 0281a890: Fix some assertions.

maiku at soc.pidgin.im maiku at soc.pidgin.im
Thu Apr 9 20:10:40 EDT 2009


-----------------------------------------------------------------
Revision: 0281a890abcc437733d01becc849724782281ef4
Ancestor: e3d1378bea9d64560ccb81099439c12b6e368f69
Author: maiku at soc.pidgin.im
Date: 2009-04-09T23:18:13
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0281a890abcc437733d01becc849724782281ef4

Modified files:
        libpurple/mediamanager.c

ChangeLog: 

Fix some assertions.

-------------- next part --------------
============================================================
--- libpurple/mediamanager.c	44dd52a657123bc6cafd4e864076141f63f745b6
+++ libpurple/mediamanager.c	9e0c1a7590f221cf86d66539f4a7f5b83f2d740b
@@ -495,7 +495,6 @@ purple_media_manager_register_element(Pu
 		g_object_unref(info2);
 		return FALSE;
 	}
-	g_object_unref(info2);
 
 	manager->priv->elements =
 			g_list_prepend(manager->priv->elements, info);
@@ -558,7 +557,8 @@ purple_media_manager_set_active_element(
 
 	if (info2 == NULL)
 		purple_media_manager_register_element(manager, info);
-	g_object_unref(info2);
+	else
+		g_object_unref(info2);
 
 	type = purple_media_element_info_get_element_type(info);
 


More information about the Commits mailing list