changeset 31545:8e29b6fff216

gtksourceundomanager: Fix a few memory leaks in our bundled copy of this widget. Refs #13162. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author morshed.nader@gmail.com
date Wed, 05 Jan 2011 16:21:21 +0000
parents b76def85cc04
children 14c400cd051e
files pidgin/gtksourceundomanager.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksourceundomanager.c	Wed Jan 05 16:20:42 2011 +0000
+++ b/pidgin/gtksourceundomanager.c	Wed Jan 05 16:21:21 2011 +0000
@@ -683,8 +683,10 @@
 		g_free (action->action.delete.text);
 	else if (action->action_type == GTK_SOURCE_UNDO_ACTION_INSERT_ANCHOR)
 		g_object_unref(action->action.insert_anchor.anchor);
-	else
+	else {
+		g_free (action);
 		g_return_if_reached ();
+	}
 
 	g_free (action);
 }