[gedit-cossa] Do not leak the action group.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-cossa] Do not leak the action group.
- Date: Sat, 28 May 2011 13:04:49 +0000 (UTC)
commit b8f8b184df40cc1cfdcdaee235f2712ab2da280d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat May 28 15:06:50 2011 +0200
Do not leak the action group.
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 df8d900..72565ad 100644
--- a/src/gedit-cossa-plugin.c
+++ b/src/gedit-cossa-plugin.c
@@ -124,6 +124,12 @@ cossa_plugin_dispose (GObject *object)
priv->window = NULL;
}
+ if (priv->ui_action_group != NULL)
+ {
+ g_object_unref (priv->ui_action_group);
+ priv->ui_action_group = NULL;
+ }
+
G_OBJECT_CLASS (cossa_plugin_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]