GNOME Bugzilla – Bug 689946
memory leak
Last modified: 2012-12-10 14:42:56 UTC
There is a memory leak here http://git.gnome.org/browse/gvfs/tree/monitor/proxy/gproxyvolumemonitor.c#n1413 Since g_proxy_volume_monitor_setup_session_bus_connection() gets called multiple times.
Created attachment 231110 [details] [review] volumeMonitor: free hash table to avoid leak this function is called multiple times, so the old hash table gets leaked. possible fix, although maybe there is some greater logic issue
Ooops, that slipped through my fingers last time I've redone the session bus initialization. Thanks for spotting this, I have committed slightly different patch since the variable is a global table which can already contain data. So let's preserve existing data instead of freeing and emptying it. Committed to master: commit 5a6d6ddc66a4bc32aef99f73c9e99a1c3ca91bff Author: Tomas Bzatek <tbzatek@redhat.com> Date: Mon Dec 10 15:37:54 2012 +0100 proxy volume monitor: Don't leak the_volume_monitors hash table The the_volume_monitors hash table is a shared global instance, make sure to only initialize it once. Based on a patch by Tim Lunn <tim@feathertop.org> https://bugzilla.gnome.org/show_bug.cgi?id=689946