[Xfce4-commits] <xfce4-systemload-plugin:master> Plug a minor memory leak

Florian Rivoal noreply at xfce.org
Fri Nov 12 17:34:01 CET 2010


Updating branch refs/heads/master
         to 79937bf4a83a7240da7662e891036d6151d5534b (commit)
       from 6c48ddb56db7fadbd837417ef753d436e4381d58 (commit)

commit 79937bf4a83a7240da7662e891036d6151d5534b
Author: Florian Rivoal <frivoal at xfce.org>
Date:   Sun Oct 17 00:52:40 2010 +0900

    Plug a minor memory leak
    
    Not all memory was cleanly released on shutdown. Fix that.

 panel-plugin/systemload.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index 98a3c16..0c62d3b 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -360,7 +360,9 @@ monitor_free(XfcePanelPlugin *plugin, t_global_monitor *global)
     {
         if (global->monitor[count]->options.label_text)
             g_free(global->monitor[count]->options.label_text);
+        g_free(global->monitor[count]);
     }
+    g_free(global->uptime);
     g_free(global);
 }
 



More information about the Xfce4-commits mailing list