cpw.maiku.media_refactor: 7f7ce451: Add a list of participants back to Purpl...

maiku at pidgin.im maiku at pidgin.im
Wed Oct 28 16:12:25 EDT 2009


-----------------------------------------------------------------
Revision: 7f7ce4514908b8cc04afd80cbe193dc611265e5c
Ancestor: 35b20906ff16f1ce992fbfb63e26b071330b8050
Author: maiku at pidgin.im
Date: 2009-10-28T18:07:27
Branch: im.pidgin.cpw.maiku.media_refactor
URL: http://d.pidgin.im/viewmtn/revision/info/7f7ce4514908b8cc04afd80cbe193dc611265e5c

Modified files:
        libpurple/media/media.c

ChangeLog: 

Add a list of participants back to PurpleMedia.

-------------- next part --------------
============================================================
--- libpurple/media/media.c	da2de9e9d55e11763191e5cf7c2071fb932a5145
+++ libpurple/media/media.c	f7fc15e73a59f9602b242616a389c80c9a185c79
@@ -99,7 +99,7 @@ struct _PurpleMediaPrivate
 	gpointer prpl_data;
 
 	GHashTable *sessions;	/* PurpleMediaSession table */
-
+	GList *participants;
 	GList *streams;		/* PurpleMediaStream table */
 #else
 	gpointer dummy;
@@ -338,6 +338,10 @@ purple_media_finalize(GObject *media)
 	for (; priv->streams; priv->streams = g_list_delete_link(priv->streams, priv->streams))
 		purple_media_stream_free(priv->streams->data);
 
+	for (; priv->participants; priv->participants = g_list_delete_link(
+			priv->participants, priv->participants))
+		g_free(priv->participants->data);
+
 	if (priv->sessions) {
 		GList *sessions = g_hash_table_get_values(priv->sessions);
 		for (; sessions; sessions = g_list_delete_link(sessions, sessions)) {


More information about the Commits mailing list