[gedit-cossa] Do not leak the hash table
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-cossa] Do not leak the hash table
- Date: Sat, 28 May 2011 13:15:19 +0000 (UTC)
commit 96c6b6bfa93688925a297ac365495f1f0b48c060
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat May 28 15:17:24 2011 +0200
Do not leak the hash table
src/gedit-cossa-plugin.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gedit-cossa-plugin.c b/src/gedit-cossa-plugin.c
index c5306ae..45e95be 100644
--- a/src/gedit-cossa-plugin.c
+++ b/src/gedit-cossa-plugin.c
@@ -130,6 +130,12 @@ cossa_plugin_dispose (GObject *object)
priv->ui_action_group = NULL;
}
+ if (priv->previews != NULL)
+ {
+ g_hash_table_unref (priv->previews);
+ priv->previews = NULL;
+ }
+
G_OBJECT_CLASS (cossa_plugin_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]