GNOME Bugzilla – Bug 711803
gsubprocess: Fix a number of leaks and a segfault
Last modified: 2013-11-11 16:48:53 UTC
These are related to the communicate async methods.
Created attachment 259485 [details] [review] gsubprocess: Fix a number of leaks and a segfault Fixed a number of leaks in gsubprocess, as well as a segfault that was hidden by never calling g_subprocess_communicate_state_free().
...but with your patch it doesn't seem to be called either ?
Review of attachment 259485 [details] [review]: ::: gio/gsubprocess.c @@ +1545,3 @@ state->outstanding_ops++; + g_object_unref (task); task was leaked. Now that it's called the finalizer for the task data is indeed called. Does that make sense?
Review of attachment 259485 [details] [review]: Looks right...this patch is a clear benefit of having the robust leak checking.
Attachment 259485 [details] pushed as 1e5e3b6 - gsubprocess: Fix a number of leaks and a segfault