[glade/gbinding] 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] Let GladeBindings disconnect created property-change handlers on finalization
- Date: Fri, 17 Jun 2011 18:37:25 +0000 (UTC)
commit f45434d804630261a5fccfeee7fb792a3635ef7b
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]