[Xfce4-commits] <xfce4-settings:jeromeg/settings-editor> Plug some leaks in (load_properties).

Jérôme Guelfucci noreply at xfce.org
Sat Jan 16 11:48:03 CET 2010


Updating branch refs/heads/jeromeg/settings-editor
         to e94fb868100a977c737f6372d9f461ba41c20f88 (commit)
       from cf6d60aa713abdfe4af5c1d9505a6ceb496708c7 (commit)

commit e94fb868100a977c737f6372d9f461ba41c20f88
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Sat Jan 16 10:13:43 2010 +0100

    Plug some leaks in (load_properties).
    
    Destroy the hash table if it was not empty and free the list of keys.

 xfce4-settings-editor/main_window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/xfce4-settings-editor/main_window.c b/xfce4-settings-editor/main_window.c
index ea108c8..4eaeab8 100644
--- a/xfce4-settings-editor/main_window.c
+++ b/xfce4-settings-editor/main_window.c
@@ -438,6 +438,9 @@ load_properties (XfconfChannel *channel, GtkTreeStore *store, GtkTreeView *treev
             g_strfreev (components);
 
         }
+
+        g_list_free (keys);
+        g_hash_table_destroy (hash_table);
     }
 }
 



More information about the Xfce4-commits mailing list