[gnome-builder] ide-editor-frame-actions: fix string leak



commit 423f182b64d0ccba8220340653c78947ccf8e399
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun Mar 20 18:36:01 2016 +0100

    ide-editor-frame-actions: fix string leak

 libide/editor/ide-editor-frame-actions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/editor/ide-editor-frame-actions.c b/libide/editor/ide-editor-frame-actions.c
index 68bf99b..53e8009 100644
--- a/libide/editor/ide-editor-frame-actions.c
+++ b/libide/editor/ide-editor-frame-actions.c
@@ -52,7 +52,7 @@ ide_editor_frame_actions_find (GSimpleAction *action,
 
       if (gtk_text_iter_get_line (&start_sel) == gtk_text_iter_get_line (&end_sel))
         {
-          const gchar *selected_text;
+          g_autofree gchar *selected_text;
 
           selected_text = gtk_text_buffer_get_text (buffer, &start_sel, &end_sel, FALSE);
           gtk_entry_set_text (GTK_ENTRY (self->search_entry), selected_text);


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