diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-02-18 18:45:38 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:46:05 +0800 |
commit | 4c8eb38a82759926b11ce0454c33a127037d3ba7 (patch) | |
tree | 527ccd3be14d1eb077f2ebd89a4ce7a97df406e3 | |
parent | 94722faf307e2e0d4d1d9532893f0a2206ac4803 (diff) | |
download | gsoc2013-empathy-4c8eb38a82759926b11ce0454c33a127037d3ba7.tar gsoc2013-empathy-4c8eb38a82759926b11ce0454c33a127037d3ba7.tar.gz gsoc2013-empathy-4c8eb38a82759926b11ce0454c33a127037d3ba7.tar.bz2 gsoc2013-empathy-4c8eb38a82759926b11ce0454c33a127037d3ba7.tar.lz gsoc2013-empathy-4c8eb38a82759926b11ce0454c33a127037d3ba7.tar.xz gsoc2013-empathy-4c8eb38a82759926b11ce0454c33a127037d3ba7.tar.zst gsoc2013-empathy-4c8eb38a82759926b11ce0454c33a127037d3ba7.zip |
Free memory in _finalize inside EmpathyFTHandler.
-rw-r--r-- | 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 ca054aa35..1e17cb00b 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); } |