[empathy: 19/148] Free memory in _finalize inside EmpathyFTHandler.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 19/148] Free memory in _finalize inside EmpathyFTHandler.
- Date: Mon, 1 Jun 2009 12:09:11 -0400 (EDT)
commit 4c8eb38a82759926b11ce0454c33a127037d3ba7
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date: Wed Feb 18 11:45:38 2009 +0100
Free memory in _finalize inside EmpathyFTHandler.
---
libempathy/empathy-ft-handler.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index ca054aa..1e17cb0 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -188,6 +188,26 @@ do_dispose (GObject *object)
static void
do_finalize (GObject *object)
{
+ EmpathyFTHandlerPriv *priv = GET_PRIV (object);
+
+ g_free (priv->content_type);
+ priv->content_type = NULL;
+
+ g_free (priv->filename);
+ priv->filename = NULL;
+
+ g_free (priv->description);
+ priv->description = NULL;
+
+ g_free (priv->content_hash);
+ priv->content_hash = NULL;
+
+ if (priv->request != NULL)
+ {
+ g_hash_table_destroy (priv->request);
+ priv->request = NULL;
+ }
+
G_OBJECT_CLASS (empathy_ft_handler_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]