fixed memory leak
git-svn-id: http://tint2.googlecode.com/svn/trunk@21 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -288,9 +288,11 @@ void event_property_notify (Window win, Atom at)
|
||||
}
|
||||
/* Window icon changed */
|
||||
else if (at == server.atom._NET_WM_ICON) {
|
||||
if (tsk->icon_data != 0) XFree (tsk->icon_data);
|
||||
if (tsk->icon_data) {
|
||||
free (tsk->icon_data);
|
||||
tsk->icon_data = 0;
|
||||
}
|
||||
tsk->area.redraw = 1;
|
||||
tsk->icon_data = 0;
|
||||
panel.refresh = 1;
|
||||
}
|
||||
/* Window desktop changed */
|
||||
|
||||
Reference in New Issue
Block a user