From e6a14da0f7946f77e4316a05e051527b54ec1c99 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Wed, 26 Nov 2014 17:33:40 +0100 Subject: Cancel background settings upon MatePanelAppletFrameDBus destruction. This is an attempt to fix https://github.com/mate-desktop/mate-panel/issues/214 --- mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c b/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c index a74e1883..ca70915e 100644 --- a/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c +++ b/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c @@ -330,8 +330,7 @@ mate_panel_applet_frame_dbus_finalize (GObject *object) MatePanelAppletFrameDBus *frame = MATE_PANEL_APPLET_FRAME_DBUS (object); if (frame->priv->bg_cancellable) - g_object_unref (frame->priv->bg_cancellable); - frame->priv->bg_cancellable = NULL; + g_cancellable_cancel (frame->priv->bg_cancellable); G_OBJECT_CLASS (mate_panel_applet_frame_dbus_parent_class)->finalize (object); } -- cgit v1.2.1