summaryrefslogtreecommitdiff
path: root/plugins/xrandr
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-14 23:11:39 +0200
committerinfirit <[email protected]>2014-07-14 23:11:39 +0200
commit38af157b61f7733781cfce76c6ff3ed403533d6b (patch)
tree010a2d04d3d030f46b57d2e9f535985e31f25101 /plugins/xrandr
parent216e53ecf80d276dc3ab093fbe7dc94134eab3a2 (diff)
downloadmate-settings-daemon-38af157b61f7733781cfce76c6ff3ed403533d6b.tar.bz2
mate-settings-daemon-38af157b61f7733781cfce76c6ff3ed403533d6b.tar.xz
xrandr-manager: Fix memleak
Diffstat (limited to 'plugins/xrandr')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index ea2878d..9f8a5a9 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -1734,6 +1734,9 @@ output_title_label_expose_event_cb (GtkWidget *widget, GdkEventExpose *event, gp
gtk_widget_set_state (widget, GTK_STATE_NORMAL);
+#if !GTK_CHECK_VERSION (3, 0, 0)
+ cairo_destroy (cr);
+#endif
return FALSE;
}