Mercurial > pidgin.yaz
comparison pidgin/gtkconv.c @ 25728:c48f5c9600c3
Fixed a ton of memory leaks.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Mon, 18 Aug 2008 06:25:38 +0000 |
parents | 1d9a2296d5d2 |
children | e22bcca9f2b2 |
comparison
equal
deleted
inserted
replaced
25727:f10e0ac24595 | 25728:c48f5c9600c3 |
---|---|
7743 pidgin_conv_new_media_cb(PurpleMediaManager *manager, PurpleMedia *media, gpointer nul) | 7743 pidgin_conv_new_media_cb(PurpleMediaManager *manager, PurpleMedia *media, gpointer nul) |
7744 { | 7744 { |
7745 GtkWidget *gtkmedia; | 7745 GtkWidget *gtkmedia; |
7746 PurpleConversation *conv; | 7746 PurpleConversation *conv; |
7747 PidginConversation *gtkconv; | 7747 PidginConversation *gtkconv; |
7748 gchar *name = purple_media_get_screenname(media); | |
7748 | 7749 |
7749 conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, | 7750 conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, |
7750 purple_connection_get_account(purple_media_get_connection(media)), | 7751 purple_connection_get_account( |
7751 purple_media_get_screenname(media)); | 7752 purple_media_get_connection(media)), name); |
7753 g_free(name); | |
7754 | |
7752 gtkconv = PIDGIN_CONVERSATION(conv); | 7755 gtkconv = PIDGIN_CONVERSATION(conv); |
7753 | 7756 |
7754 if (gtkconv->gtkmedia) { | 7757 if (gtkconv->gtkmedia) { |
7755 purple_debug_info("gtkconv", "Media session exists for this conversation.\n"); | 7758 purple_debug_info("gtkconv", "Media session exists for this conversation.\n"); |
7756 return FALSE; | 7759 return FALSE; |