[Bug 2141] New: cpugraph leaks memory

[email protected] Wed, 9 Aug 2006 09:29:14 +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

           Summary: cpugraph leaks memory
           Product: Xfce Panel Plugins
           Version: unspecified
          Platform: PC (x86)
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: cpugraph
        AssignedTo: [email protected]
        ReportedBy: [email protected]


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.5)
Gecko/20060719 Firefox/1.5.0.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.5)
Gecko/20060719 Firefox/1.5.0.5

When running for a longer time, one day or so, cpugraph is using about 35mb of
memory.
The following fixed it for me:

--- cpu.c.old   2006-08-09 11:02:40.446805504 +0200
+++ cpu.c       2006-08-09 01:26:29.950955461 +0200
@@ -244,7 +244,7 @@
 void
 UpdateTooltip (CPUGraph * base)
 {
-    char tooltip[32];
+    static char tooltip[32];

     sprintf (tooltip, "Usage: %ld%%", base->m_CPUUsage);
     gtk_tooltips_set_tip (GTK_TOOLTIPS (base->m_Tooltip),


Reproducible: Always

Steps to Reproduce:


-- 
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.