[gupnp] [PATCH] chain up in GUPnPDeviceInfo dispose and finalize methods



Hi,

as far as I can see GUPnPDeviceInfo forgets to chain up in the dispose
and finalize methods. Attached is a patch that fixes this.


Sven


>From a64492673900399a836ca35c33d1da4fec68db5d Mon Sep 17 00:00:00 2001
From: Sven Neumann <s neumann phase-zero de>
Date: Wed, 25 Mar 2009 20:34:08 +0100
Subject: [PATCH] chain up in GUPnPDeviceInfo dispose and finalize methods

---
 libgupnp/gupnp-device-info.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libgupnp/gupnp-device-info.c b/libgupnp/gupnp-device-info.c
index 041174d..65d6f7a 100644
--- a/libgupnp/gupnp-device-info.c
+++ b/libgupnp/gupnp-device-info.c
@@ -184,6 +184,8 @@ gupnp_device_info_dispose (GObject *object)
                 g_object_unref (info->priv->doc);
                 info->priv->doc = NULL;
         }
+
+        G_OBJECT_CLASS (gupnp_device_info_parent_class)->dispose (object);
 }
 
 static void
@@ -198,6 +200,8 @@ gupnp_device_info_finalize (GObject *object)
         g_free (info->priv->device_type);
 
         soup_uri_free (info->priv->url_base);
+
+        G_OBJECT_CLASS (gupnp_device_info_parent_class)->finalize (object);
 }
 
 static void
-- 
1.5.6.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]