[easytag/wip/application-window: 66/72] Fix memory leak when setting a focus chain
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/application-window: 66/72] Fix memory leak when setting a focus chain
- Date: Tue, 22 Jul 2014 21:34:36 +0000 (UTC)
commit 2709d94fa5069061dc2e8f41eefe278ef4f0f8a3
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]