GNOME Bugzilla – Bug 711085
Some memory leak fixes
Last modified: 2013-11-04 14:20:07 UTC
Found while running valgrind with remote-viewer
Created attachment 258454 [details] [review] Don't leak g_get_current_dir() result glib API documentation indicates: « The returned string should be freed when no longer needed. »
Created attachment 258455 [details] [review] socket: Don't leak GTasks GTask needs to be unreffed after calling g_task_return_* when we don't use async methods which take ownership of it (as g_task_run_in_thread() does).
Comment on attachment 258455 [details] [review] socket: Don't leak GTasks >+ g_object_unref(task); >+ g_object_unref(task); >+ g_object_unref(task); space between function name and "(". OK to commit with that fix.
Attachment 258454 [details] pushed as 51cd4fb - Don't leak g_get_current_dir() result Attachment 258455 [details] pushed as 1ad6f7e - socket: Don't leak GTasks