gnome-applets r10813 - trunk/multiload
- From: callum svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-applets r10813 - trunk/multiload
- Date: Fri, 25 Apr 2008 06:32:10 +0100 (BST)
Author: callum
Date: Fri Apr 25 05:32:10 2008
New Revision: 10813
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=10813&view=rev
Log:
Multiload applet memory leak fix. (with the patch really applied this time)
Modified:
trunk/multiload/load-graph.c
Modified: trunk/multiload/load-graph.c
==============================================================================
--- trunk/multiload/load-graph.c (original)
+++ trunk/multiload/load-graph.c Fri Apr 25 05:32:10 2008
@@ -272,12 +272,12 @@
for (i = 0; i < g->n; i++)
{
g_snprintf(name, sizeof(name), "%s_color%u", g->name, i);
- temp = g_strdup_printf("%s", panel_applet_gconf_get_string(g->multiload->applet, name, NULL));
+ temp = panel_applet_gconf_get_string(g->multiload->applet, name, NULL);
+ if (!temp)
+ temp = g_strdup ("#000000");
gdk_color_parse(temp, &(g->colors[i]));
g_free(temp);
}
-
- return;
}
LoadGraph *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]