GNOME Bugzilla – Bug 152323
Binding to a named slot causes a memory leak according to memprof
Last modified: 2004-12-22 21:47:04 UTC
Compile and run the attached test case under memprof and observe that binding to a named slot appears to cause a leak (or two). Then recompile with I_WANT_TO_LEAK undefined and observe that creating and binding the slot all inline does not cause the leak
Created attachment 31478 [details] Test case Test case to demonstrate the memory leak.
Created attachment 31479 [details] Memprof leak log This is the log of running memprof against the test case.
Thanks for pointing this out. The problem was that the functor stored in struct typed_slot_rep never got destroyed because there is no virtual dtor. I've fixed this in cvs.