]> Dogcows Code - chaz/tint2/commitdiff
fixed small border case
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 12 Jan 2010 20:13:42 +0000 (20:13 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 12 Jan 2010 20:13:42 +0000 (20:13 +0000)
src/systray/systraybar.c

index bd36ffbee4c64dc11cf7e8f37e7bcef5d4427971..4296435fedf9d2cc737a7543823d05534c17b5c3 100644 (file)
@@ -361,6 +361,7 @@ gboolean add_icon(Window id)
        XSetErrorHandler(old);
        if (error != FALSE) {
                fprintf(stderr, "tint2 : not icon_swallow\n");
+               XDestroyWindow(server.dsp, parent_window);
                return FALSE;
        }
 
@@ -383,6 +384,7 @@ gboolean add_icon(Window id)
                }
                else {
                        fprintf(stderr, "tint2 : xembed error\n");
+                       XDestroyWindow(server.dsp, parent_window);
                        return FALSE;
                }
        }
This page took 0.022641 seconds and 4 git commands to generate.