GNOME Bugzilla – Bug 712799
Memory leak when listing Avahi printers
Last modified: 2013-11-26 13:27:04 UTC
Created attachment 260422 [details] [review] Fix memory leak when listing Avahi printers Return values of g_variant_get_child_value() were not unreffed correctly together with one value returned by g_variant_get(). There is also one inefficient copy of string from byte array in the same code. It can use g_variant_get_data() instead (not g_variant_get_bytestring() - the array is not zero-terminated). Attached patch fixes this problem. Marek
Created attachment 261224 [details] [review] Fix memory leak when listing Avahi printers (for master) This version of the patch is for current master.
Review of attachment 261224 [details] [review]: ok
Comment on attachment 261224 [details] [review] Fix memory leak when listing Avahi printers (for master) Thank you for the review. I've committed the patch to the master.
Can I push the patch to 3.8 and 3.10 (attachment 260422 [details] [review])?
yes, please
Thanks. I've committed it to 3.8 and 3.10. Marek