[glade/gbinding: 44/60] Fix a memory leak in glade_property_set_binding_transform_func()
- From: Denis Washington <denisw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/gbinding: 44/60] Fix a memory leak in glade_property_set_binding_transform_func()
- Date: Tue, 13 Dec 2011 07:03:10 +0000 (UTC)
commit 108c00f1c45af3d68c3cb3c96e6f3197a75be354
Author: Denis Washington <denisw src gnome org>
Date: Mon Aug 1 12:06:55 2011 +0200
Fix a memory leak in glade_property_set_binding_transform_func()
gladeui/glade-property.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gladeui/glade-property.c b/gladeui/glade-property.c
index 6ab12e2..1f1f02d 100644
--- a/gladeui/glade-property.c
+++ b/gladeui/glade-property.c
@@ -1910,7 +1910,9 @@ glade_property_set_binding_transform_func (GladeProperty *property,
{
g_return_if_fail (GLADE_IS_PROPERTY (property));
+ g_free (property->priv->binding_transform_func);
property->priv->binding_transform_func = g_strdup (transform_func);
+
g_object_notify_by_pspec (G_OBJECT (property),
properties[PROP_BINDING_TRANSFORM_FUNC]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]