https://bugs.freedesktop.org/show_bug.cgi?id=56396
Patrick Ohly <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #1 from Patrick Ohly <[email protected]> --- Investigated and fixed: commit d9bd10237ffe6349811c44ef98887b8ba7e4128d Author: Patrick Ohly <[email protected]> Date: Wed Oct 31 22:30:54 2012 -0700 gee: fix memory leak in GeeCollCXX gee_collection_iterator_get() always transfers ownership. The caller must g_free() (for strings) or unref (for GObjects) the returned value. The revised GeeCollCXX does this automatically, with GObject being the default (relies on the GObject intrusive pointer template classes) and "gchar *" a special case in the template specialization of an utility traits class. The usage is almost as before. However, because of the reliance on SE_GOBJECT_TYPE, that macro must have been used for all types over which is to be iterated. Requires moving some definitions into header files where they can be shared. commit 49d300e3a3015f32a4f467ef402a1f617deeba85 Author: Patrick Ohly <[email protected]> Date: Wed Oct 31 22:15:00 2012 -0700 glib: fixed memory leak in some GAsyncReady helpers The callback was allocated with new for the duration of the operation and must be deleted. Was done via try/catch in some cases, but not all. The better solution is to use RAII and store the instance in an auto_ptr as soon as that is possible again. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ Syncevolution-issues mailing list [email protected] http://lists.syncevolution.org/listinfo/syncevolution-issues
