fixed systray crash by mart1987
git-svn-id: http://tint2.googlecode.com/svn/trunk@148 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -79,10 +79,9 @@ void init_systray()
|
||||
void cleanup_systray()
|
||||
{
|
||||
if (systray.list_icons) {
|
||||
GSList *it;
|
||||
|
||||
for (it = systray.list_icons; it; it = it->next)
|
||||
remove_icon((TrayWindow*)it->data);
|
||||
// remove_icon change systray.list_icons
|
||||
while(systray.list_icons)
|
||||
remove_icon((TrayWindow*)systray.list_icons->data);
|
||||
|
||||
g_slist_free(systray.list_icons);
|
||||
systray.list_icons = 0;
|
||||
|
||||
Reference in New Issue
Block a user