GNOME Bugzilla – Bug 710104
Fix a few issues with get_runtime_state / set_runtime_state
Last modified: 2013-10-14 14:53:39 UTC
Fix a few memory leaks, and a double free.
Created attachment 257256 [details] [review] shell-global: Fix a few memory leaks
Created attachment 257257 [details] [review] shell-global: Fix an invalid memory botch-up The value we return is a floating ref, which gjs shouldn't try to free.
Review of attachment 257256 [details] [review]: ++
Review of attachment 257257 [details] [review]: ::: src/shell-global.c @@ +1793,3 @@ * logout or reboot. * + * Returns: (transfer floating): The value of a serialized property, or %NULL if none stored The GVariant APIs use 'transfer none'. Should they be changed?
One's an alias for the other. See https://wiki.gnome.org/GObjectIntrospection/Annotations#Memory_and_lifecycle_management
Review of attachment 257257 [details] [review]: OK, looks fine
Attachment 257256 [details] pushed as 4548859 - shell-global: Fix a few memory leaks Attachment 257257 [details] pushed as d21ae1d - shell-global: Fix an invalid memory botch-up