changeset 26608:082a97307b8d

Fix some assertions.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Thu, 09 Apr 2009 23:18:13 +0000
parents 335826210c02
children 9a2e4aebfa91
files libpurple/mediamanager.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/mediamanager.c	Thu Apr 09 23:11:44 2009 +0000
+++ b/libpurple/mediamanager.c	Thu Apr 09 23:18:13 2009 +0000
@@ -495,7 +495,6 @@
 		g_object_unref(info2);
 		return FALSE;
 	}
-	g_object_unref(info2);
 
 	manager->priv->elements =
 			g_list_prepend(manager->priv->elements, info);
@@ -558,7 +557,8 @@
 
 	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);