]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
fixed memory leak
[chaz/tint2] / src / tint.c
index 46c0c22dd46bd00d79e905ff99d87aa8c36b6095..821048bb426fcdd570418e08887f67e920c60cbd 100644 (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 */
This page took 0.020654 seconds and 4 git commands to generate.