[gtksourceview] view: fix memory leak
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] view: fix memory leak
- Date: Thu, 25 Sep 2014 12:53:52 +0000 (UTC)
commit 337c4ce830a8ea5a368a1280a42ad976374cb05b
Author: Christian Hergert <christian hergert me>
Date: Thu Sep 18 02:14:00 2014 +0200
view: fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=736841
gtksourceview/gtksourceview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index b14df66..e54869e 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -3504,7 +3504,10 @@ gtk_source_view_key_press_event (GtkWidget *widget,
* If this function returns TRUE, then no further processing should be done
* for this keystroke. */
if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (view), event))
+ {
+ g_free (indent);
return TRUE;
+ }
/* If an input method has inserted some text while handling the key press event,
* the cur iterm may be invalid, so get the iter again */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]