Commit 0ec44c66 authored by Ben's avatar Ben

Fix memory leaks when converting gchar* to string.

https://bugzilla.gnome.org/show_bug.cgi?id=783447
parent a535df92
......@@ -927,9 +927,9 @@ ProcInfo::ProcInfo(pid_t pid)
if (tooltip.empty())
tooltip = procstate.cmd;
info->tooltip = g_markup_escape_text(tooltip.c_str(), -1);
info->tooltip = make_string(g_markup_escape_text(tooltip.c_str(), -1));
info->arguments = g_strescape(tooltip.c_str(), "\\\"");
info->arguments = make_string(g_strescape(tooltip.c_str(), "\\\""));
g_strfreev(arguments);
guint64 cpu_time = proctime.rtime;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment