[Bug 2141] cpugraph leaks memory

[email protected] Wed, 9 Aug 2006 09:46:01 +0000 (UTC)
Newsgroups gmane.comp.desktop.xfce.goodies.devel
Message-ID <[email protected]>
Do NOT reply to this email.  To make further comments on this bug, use
the URL below:
http://bugzilla.xfce.org/show_bug.cgi?id=2141





------- Comment #1 from [email protected]  2006-08-09 09:46 UTC -------
It's better to free the tooltip:

void
UpdateTooltip (CPUGraph * base)
{
    gchar *tooltip;

    tooltip = g_strdup_printf ("Usage: %ld%%", base->m_CPUUsage);
    gtk_tooltips_set_tip (GTK_TOOLTIPS (base->m_Tooltip), 
                          base->m_FrameWidget->parent, tooltip, NULL);
    g_free (tooltip);
}

Maybe "char tooltip[32]" > "const char tooltip[32]" will also work.


-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.