GNOME Bugzilla – Bug 98751
memory leak in Weather Report 2.0.1 Applet
Last modified: 2004-12-22 21:47:04 UTC
Description of Problem: Set up the gweather applet to use a radar image (preferences -> general tab -> enable radar map) Then open up gnome-system-monitor. Note the memory usage of the weather applet. Then update the weather. Watch it grow. Repeat. The memory usage keeps growing. This is not a problem with just text-only forecasts. Or it leaks so slowly that it's not noticable (I can't imagine a text-only forecast uses much mem). But either the default radar image or using a custom radar image causes the same leak. Steps to reproduce the problem: 1. Enable a radar map. 2. Every time you update the forecast, new memory is allocated for the new radar map. Actual Results: New memory is allocated for each updated radar map instead of freeing the old radar image or overwriting the old image. Expected Results: Should reuse memory, or free old memory when updating the radar image. How often does this happen? Every time... Additional Information: I noticed this by sorting processes in gnome-system-monitor by memory usage, and saw it was using over 50 MB! I updated the forecast and it went even higher so I submitted this.
*** Bug 95948 has been marked as a duplicate of this bug. ***
Easily and fairly quickly reproducable. Each update adds around 300K-400K to the memory taken by the applet. It starts at about 9.9M and I raised it to 25M just by updating many times. I'm on a RH 8.0 system. Setting version to 2.0.x. I don't know if the severity needs to be critical, as this isn't a library or any application used everywhere, but I'll leave it as is. I think this may be the same bug that is talked about in bug #96443. That bug report contains a proposed PATCH that may fix this problem.
I'm almost certain that this leak is patched by bug 96443 - travis: if you still see the leak with later versions of gweather, please file a new bug - thanks. *** This bug has been marked as a duplicate of 96443 ***