Mercurial > pidgin.yaz
comparison gtk/gtkstatusbox.c @ 14254:360c016459d0
[gaim-migrate @ 16936]
Cleaning up after myself: free data *after* using it.
And if gstreamer fails, and the user switches to a different method,
sound should stil work.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 21 Aug 2006 03:13:08 +0000 |
parents | 009db0b357b5 |
children | 776975f2c550 |
comparison
equal
deleted
inserted
replaced
14253:dc0afefc19d8 | 14254:360c016459d0 |
---|---|
1053 if (plug) { | 1053 if (plug) { |
1054 GaimPluginProtocolInfo *prplinfo = GAIM_PLUGIN_PROTOCOL_INFO(plug); | 1054 GaimPluginProtocolInfo *prplinfo = GAIM_PLUGIN_PROTOCOL_INFO(plug); |
1055 if (prplinfo && prplinfo->icon_spec.format) { | 1055 if (prplinfo && prplinfo->icon_spec.format) { |
1056 char *icon = gaim_gtk_convert_buddy_icon(plug, filename); | 1056 char *icon = gaim_gtk_convert_buddy_icon(plug, filename); |
1057 gaim_account_set_buddy_icon(box->account, icon); | 1057 gaim_account_set_buddy_icon(box->account, icon); |
1058 g_free(icon); | |
1059 gaim_account_set_ui_bool(box->account, GAIM_GTK_UI, "use-global-buddyicon", FALSE); | 1058 gaim_account_set_ui_bool(box->account, GAIM_GTK_UI, "use-global-buddyicon", FALSE); |
1060 gaim_account_set_ui_string(box->account, GAIM_GTK_UI, "non-global-buddyicon", icon); | 1059 gaim_account_set_ui_string(box->account, GAIM_GTK_UI, "non-global-buddyicon", icon); |
1060 g_free(icon); | |
1061 } | 1061 } |
1062 } | 1062 } |
1063 } else { | 1063 } else { |
1064 for (accounts = gaim_accounts_get_all(); accounts != NULL; accounts = accounts->next) { | 1064 for (accounts = gaim_accounts_get_all(); accounts != NULL; accounts = accounts->next) { |
1065 GaimAccount *account = accounts->data; | 1065 GaimAccount *account = accounts->data; |