[gnome-system-monitor/wip/newdesign] Free the memory of cpu color pickers when destroying the loadgraph



commit 30d3a7b21d1d072d25e036cae797988c2e8c4353
Author: Robert Roth <robert roth off gmail com>
Date:   Tue Aug 13 00:10:17 2013 +0300

    Free the memory of cpu color pickers when destroying the loadgraph

 src/load-graph.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index b8c785d..d574108 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -671,7 +671,7 @@ static gboolean
 load_graph_destroy (GtkWidget *widget, gpointer data_ptr)
 {
     LoadGraph * const graph = static_cast<LoadGraph*>(data_ptr);
-
+    g_list_free (graph->cpu_color_pickers);
     delete graph;
 
     return FALSE;


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