gnome-system-monitor r2545 - branches/gnome-2-24/src
- From: bdejean svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-system-monitor r2545 - branches/gnome-2-24/src
- Date: Thu, 8 Jan 2009 21:01:20 +0000 (UTC)
Author: bdejean
Date: Thu Jan 8 21:01:19 2009
New Revision: 2545
URL: http://svn.gnome.org/viewvc/gnome-system-monitor?rev=2545&view=rev
Log:
Fixed memory leak.
Patch by Hubert Figuiere <hfiguiere teaser fr>
Closes #566962.
Modified:
branches/gnome-2-24/src/util.cpp
Modified: branches/gnome-2-24/src/util.cpp
==============================================================================
--- branches/gnome-2-24/src/util.cpp (original)
+++ branches/gnome-2-24/src/util.cpp Thu Jan 8 21:01:19 2009
@@ -462,7 +462,9 @@
{
char* bytes = procman::format_size(rate, max_rate);
// xgettext: rate, 10MiB/s
- return make_string(g_strdup_printf(_("%s/s"), bytes));
+ std::string formatted_rate(make_string(g_strdup_printf(_("%s/s"), bytes)));
+ g_free(bytes);
+ return formatted_rate;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]