[Xfce4-commits] [panel-plugins/xfce4-pulseaudio-plugin] 01/02: Disconnect events and cleanup

noreply at xfce.org noreply at xfce.org
Thu Mar 19 02:12:30 CET 2015


This is an automated email from the git hooks/post-receive script.

andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-pulseaudio-plugin.

commit 9242604961516da8fd89b083200c1b6ecb2dc1db
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Thu Mar 19 01:10:47 2015 +0000

    Disconnect events and cleanup
---
 panel-plugin/pulseaudio-menu.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/panel-plugin/pulseaudio-menu.c b/panel-plugin/pulseaudio-menu.c
index 6ff462c..980b1ec 100644
--- a/panel-plugin/pulseaudio-menu.c
+++ b/panel-plugin/pulseaudio-menu.c
@@ -76,9 +76,11 @@ static void
 pulseaudio_menu_init (PulseaudioMenu *menu)
 {
   menu->volume                         = NULL;
+  menu->config                         = NULL;
   menu->button                         = NULL;
   menu->range_output                   = NULL;
   menu->mute_output_item               = NULL;
+  menu->volume_changed_id              = 0;
 }
 
 
@@ -89,6 +91,16 @@ pulseaudio_menu_finalize (GObject *object)
 
   menu = PULSEAUDIO_MENU (object);
 
+  if (menu->volume_changed_id != 0)
+    g_signal_handler_disconnect (G_OBJECT (menu->volume), menu->volume_changed_id);
+
+  menu->volume                         = NULL;
+  menu->config                         = NULL;
+  menu->button                         = NULL;
+  menu->range_output                   = NULL;
+  menu->mute_output_item               = NULL;
+  menu->volume_changed_id              = 0;
+
   G_OBJECT_CLASS (pulseaudio_menu_parent_class)->finalize (object);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list