fixed memory leak

git-svn-id: http://tint2.googlecode.com/svn/trunk@21 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2008-11-18 22:14:01 +00:00
parent d29f3771de
commit 89bcccb468
6 changed files with 27 additions and 16 deletions

View File

@@ -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 */