GNOME Bugzilla – Bug 706495
core: Use g_clear_error()/g_clear_object()/g_list_free_full()
Last modified: 2013-08-23 23:20:38 UTC
Simplify cleanup functions by relying on the NULL-safe versions of g_error_free()/g_object_unref() and free lists and their elements in a single pass.
Created attachment 252550 [details] [review] core: Use g_clear_error()/g_clear_object()/g_list_free_full() Simplify cleanup functions by relying on the NULL-safe versions of g_error_free()/g_object_unref() and free lists and their elements in a single pass.
Attachment 252550 [details] pushed as c53c9c4 - core: Use g_clear_error()/g_clear_object()/g_list_free_full() commit c53c9c4b8ae706d6a0096873ced8c076fcdf97b4 Author: Emanuele Aina <emanuele.aina@collabora.com> Date: Wed Aug 21 15:04:14 2013 +0200 core: Use g_clear_error()/g_clear_object()/g_list_free_full() Simplify cleanup functions by relying on the NULL-safe versions of g_error_free()/g_object_unref() and free lists and their elements in a single pass. https://bugzilla.gnome.org/show_bug.cgi?id=706495 src/grl-multiple.c | 5 +---- src/grl-operation-options.c | 3 +-- src/grl-source.c | 52 +++++++++++++++------------------------------------- 3 files changed, 17 insertions(+), 43 deletions(-)