[glade/gbinding: 24/60] Let GladeBindings disconnect created property-change handlers on finalization
- From: Denis Washington <denisw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/gbinding: 24/60] Let GladeBindings disconnect created property-change handlers on finalization
- Date: Tue, 13 Dec 2011 07:01:29 +0000 (UTC)
commit 8b7a0db6c3929f2263389da40bc033918f0d59cd
Author: Denis Washington <denisw src gnome org>
Date: Fri Jun 17 19:54:00 2011 +0200
Let GladeBindings disconnect created property-change handlers on finalization
gladeui/glade-binding.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gladeui/glade-binding.c b/gladeui/glade-binding.c
index 69f6845..c792f4e 100644
--- a/gladeui/glade-binding.c
+++ b/gladeui/glade-binding.c
@@ -89,6 +89,9 @@ glade_binding_finalize (GObject *object)
{
GladeBindingPrivate *priv = GLADE_BINDING_GET_PRIVATE (GLADE_BINDING (object));
+ if (priv->change_handler)
+ g_signal_handler_disconnect (object, priv->change_handler);
+
g_free (priv->source_object_name);
g_free (priv->source_property_name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]