[gtkhtml] Fix a memory leak (GtkhtmlFaceAction instance)



commit 19632b85a0ab73765c433c8bd8e6e5d2dde8a7e4
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jan 31 14:33:03 2013 +0100

    Fix a memory leak (GtkhtmlFaceAction instance)

 components/editor/gtkhtml-editor-actions.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/components/editor/gtkhtml-editor-actions.c b/components/editor/gtkhtml-editor-actions.c
index 35d174f..5733f52 100644
--- a/components/editor/gtkhtml-editor-actions.c
+++ b/components/editor/gtkhtml-editor-actions.c
@@ -2142,6 +2142,7 @@ gtkhtml_editor_actions_init (GtkhtmlEditor *editor)
 		action, "item-activated",
 		G_CALLBACK (action_insert_face_cb), editor);
 	gtk_action_group_add_action (action_group, action);
+	g_object_unref (action);
 
 	/* Core Actions (HTML only) */
 	action_group = editor->priv->html_actions;



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