[gtksourceview] Do not leak the row text
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Do not leak the row text
- Date: Wed, 31 Dec 2014 09:03:52 +0000 (UTC)
commit 9504279a0f26724b8068394cb5f752440fde65c3
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Dec 31 10:03:35 2014 +0100
Do not leak the row text
gtksourceview/gtksourcestyleschemechooserwidget.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcestyleschemechooserwidget.c
b/gtksourceview/gtksourcestyleschemechooserwidget.c
index a5044d2..a236a9b 100644
--- a/gtksourceview/gtksourcestyleschemechooserwidget.c
+++ b/gtksourceview/gtksourcestyleschemechooserwidget.c
@@ -161,6 +161,7 @@ make_row (GtkSourceStyleScheme *scheme,
text = g_strdup_printf ("/* %s */\n#include <gtksourceview/gtksource.h>",
gtk_source_style_scheme_get_name (scheme));
gtk_text_buffer_set_text (GTK_TEXT_BUFFER (buffer), text, -1);
+ g_free (text);
view = g_object_new (GTK_SOURCE_TYPE_VIEW,
"buffer", buffer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]