diff options
author | Colomban Wendling <[email protected]> | 2022-06-28 11:25:05 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-02 17:43:00 +0200 |
commit | e1bfb5b674c31e81465fc8307b28abc22260ccd6 (patch) | |
tree | 411e5d8c12ee7d6977d2d92e07ffec75dbe4e33a /libmate-panel-applet | |
parent | f958e06e6671c7cc3214d44c26bf51032e2f871b (diff) | |
download | mate-panel-e1bfb5b674c31e81465fc8307b28abc22260ccd6.tar.bz2 mate-panel-e1bfb5b674c31e81465fc8307b28abc22260ccd6.tar.xz |
panel-applet: Fix leak in no-background code path
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index c08e5cc2..38af2c38 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -1625,8 +1625,9 @@ mate_panel_applet_change_background(MatePanelApplet *applet, switch (type) { case PANEL_NO_BACKGROUND: if (priv->out_of_process){ - pattern = cairo_pattern_create_rgba (0,0,0,0); /* Using NULL here breaks transparent */ - gdk_window_set_background_pattern(window,pattern); /* backgrounds set by GTK theme */ + cairo_pattern_t *transparent = cairo_pattern_create_rgba (0, 0, 0, 0); /* Using NULL here breaks transparent */ + gdk_window_set_background_pattern (window, transparent); /* backgrounds set by GTK theme */ + cairo_pattern_destroy (transparent); } break; case PANEL_COLOR_BACKGROUND: |