GNOME Bugzilla – Bug 792899
gstreamer-sharp doesn't free string
Last modified: 2018-01-26 17:27:26 UTC
Created attachment 367421 [details] [review] Fix few leaks after strdup The string which is allocated by `GLib.Marshaller.StringToPtrGStrdup` should be freed.
Review of attachment 367421 [details] [review]: ::: sources/custom/Application.cs @@ +51,3 @@ gst_init(ref cnt_argv, ref native_argv); + for (int i = 0; i < cnt_argv; i++) + GLib.Marshaller.Free (native_argv[i]); While this is correct, this is not enough. gst_init() can change the array, it removes all arguments that it handled itself. So you would be leaking those ones here
Created attachment 367451 [details] [review] Fix few leaks after strdup
Attachment 367451 [details] pushed as 894fee3 - Fix few leaks after strdup