Mercurial > pidgin.yaz
comparison gtk/gtkdocklet.c @ 15014:b188da596c46
[gaim-migrate @ 17794]
plug some leaks.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 21 Nov 2006 00:38:35 +0000 |
parents | 621e798f435c |
children | 9dcd88cd7dee |
comparison
equal
deleted
inserted
replaced
15013:4b7065af8549 | 15014:b188da596c46 |
---|---|
120 /* determine if any ims have unseen messages */ | 120 /* determine if any ims have unseen messages */ |
121 convs = get_pending_list(DOCKLET_TOOLTIP_LINE_LIMIT); | 121 convs = get_pending_list(DOCKLET_TOOLTIP_LINE_LIMIT); |
122 | 122 |
123 if (!strcmp(gaim_prefs_get_string("/gaim/gtk/docklet/show"), "pending")) { | 123 if (!strcmp(gaim_prefs_get_string("/gaim/gtk/docklet/show"), "pending")) { |
124 if (convs && ui_ops->create && !visibility_manager) { | 124 if (convs && ui_ops->create && !visibility_manager) { |
125 ui_ops->create(); | 125 g_list_free(convs); |
126 return FALSE; | 126 ui_ops->create(); |
127 return FALSE; | |
127 } else if (!convs && ui_ops->destroy && visibility_manager) { | 128 } else if (!convs && ui_ops->destroy && visibility_manager) { |
128 ui_ops->destroy(); | 129 ui_ops->destroy(); |
129 return FALSE; | 130 return FALSE; |
130 } | 131 } |
131 } | 132 } |
132 | 133 |
133 if (!visibility_manager) | 134 if (!visibility_manager) { |
135 g_list_free(convs); | |
134 return FALSE; | 136 return FALSE; |
137 } | |
135 | 138 |
136 if (convs != NULL) { | 139 if (convs != NULL) { |
137 pending = TRUE; | 140 pending = TRUE; |
138 | 141 |
139 /* set tooltip if messages are pending */ | 142 /* set tooltip if messages are pending */ |
305 if (visibility_manager && ui_ops->destroy) | 308 if (visibility_manager && ui_ops->destroy) |
306 ui_ops->destroy(); | 309 ui_ops->destroy(); |
307 } else { | 310 } else { |
308 docklet_update_status(); | 311 docklet_update_status(); |
309 } | 312 } |
310 | 313 |
311 } | 314 } |
312 | 315 |
313 /************************************************************************** | 316 /************************************************************************** |
314 * docklet pop-up menu | 317 * docklet pop-up menu |
315 **************************************************************************/ | 318 **************************************************************************/ |