GNOME Bugzilla – Bug 748563
videobufferpool: Free members before chaining up finalize
Last modified: 2015-04-28 09:22:24 UTC
Created attachment 302490 [details] [review] videobufferpool: Free members before chaining up finalize The finalize function in GObject frees the object memory, so everything else needs to have been freed before, otherwise they may be leaked.
Review of attachment 302490 [details] [review]: LGTM, but how can the patch comment hold in practice? I mean, the objects are ref-counted, and the base object has no clue about them, and if it had, then that would be ref-counted too, isn't it? Anyway, that's fine to commit that patch.
Comment on attachment 302490 [details] [review] videobufferpool: Free members before chaining up finalize commit be37f459986ca7144643d4570482773909d067cf Author: Olivier Crete <olivier.crete@collabora.com> Date: Mon Apr 27 20:50:19 2015 -0400 videopool: Free members before chaining up finalize The finalize function in GObject frees the object memory, so everything else needs to have been freed before. https://bugzilla.gnome.org/show_bug.cgi?id=748563