From 734c7ea36fffbc85042bbeccd476b8d2f7609e67 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 11 Feb 2009 20:29:04 -0600 Subject: Fixing the deallocation to check the right parameters. --- libindicate/listener.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libindicate') diff --git a/libindicate/listener.c b/libindicate/listener.c index e6a8aa6..4da6d59 100644 --- a/libindicate/listener.c +++ b/libindicate/listener.c @@ -341,10 +341,10 @@ proxy_struct_destroy (gpointer data) } if (proxy_data->property_proxy) { - g_object_unref(G_OBJECT(proxy_data->proxy)); + g_object_unref(G_OBJECT(proxy_data->property_proxy)); } - if (proxy_data->property_proxy) { + if (proxy_data->proxy) { g_object_unref(G_OBJECT(proxy_data->proxy)); } -- cgit v1.2.3