Bug 2531

Summary: vCalendar has major memory leak
Product: Claws Mail (GTK 2) Reporter: David Schneider <dnschneid>
Component: OtherAssignee: users
Status: RESOLVED FIXED    
Severity: major    
Priority: P3    
Version: 3.7.10   
Hardware: PC   
OS: Linux   

Description David Schneider 2011-10-28 23:00:04 UTC
I'm using version 3.7.10 with the patch for bug 2516 applied, as downloaded from the PPA.

I'm finding that when viewing any significant-sized Google calendar, each time the calendar is viewed, the memory usage of claws shoots up, and does not return.

A good calendar to test this on is Google's Stardates calendar:
https://www.google.com/calendar/ical/%23stardate%40group.v.calendar.google.com/public/basic.ics
If you subscribe to it, then show it, then look at something else, then show it again repeatedly, you should find that Claws' memory usage goes up by about 4.5MB each time.

And it's worse with a bigger calendar.  My personal calendar makes it shoot up 10 megs at a time, and my class calendar (with a lot of repeating events) increases the memory usage by 75 MB at each view!  Yikes!
Comment 1 Colin Leroy 2011-10-29 10:01:40 UTC
Indeed. It seems easy to fix, just checking a bit more with valgrind.
Comment 2 Colin Leroy 2011-10-31 09:09:00 UTC
2011-10-30 [colin]      2.0.11cvs6

        * src/vcal_meeting_gtk.c
                Double-free here too

2011-10-29 [colin]      2.0.11cvs5

        * src/vcal_folder.c
                Fix bug #2531, "vCalendar has major memory leak"