[easytag/wip/application-window: 69/74] Fix memory leak when setting a focus chain



commit eb7a9508d284c9372f751a2e93d7a8ac32a374cb
Author: David King <amigadave amigadave com>
Date:   Sat Jul 19 22:23:55 2014 +0100

    Fix memory leak when setting a focus chain
    
    Free the list, but not the elements, when setting a focus chain.

 src/tag_area.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tag_area.c b/src/tag_area.c
index 9439412..82a7aa2 100644
--- a/src/tag_area.c
+++ b/src/tag_area.c
@@ -2459,7 +2459,7 @@ create_tag_area (EtTagArea *self)
      * whole list. */
     focus_chain = g_list_reverse (focus_chain);
     gtk_container_set_focus_chain (GTK_CONTAINER (table), focus_chain);
-
+    g_list_free (focus_chain);
 
     /*
      * 2 - Page for extra tag fields


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