From fd58e16a8d83dac5ebbffafc112b2d1786fd7823 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 25 Nov 2011 12:01:05 -0500 Subject: [PATCH] core: Minor code cleanup --- src/libotutil/ot-gio-utils.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libotutil/ot-gio-utils.c b/src/libotutil/ot-gio-utils.c index 2d55f985..28fd79c0 100644 --- a/src/libotutil/ot-gio-utils.c +++ b/src/libotutil/ot-gio-utils.c @@ -81,15 +81,15 @@ ot_gfile_load_contents_utf8 (GFile *file, } if (contents_out) - *contents_out = ret_contents; - else - g_free (ret_contents); - ret_contents = NULL; + { + *contents_out = ret_contents; + ret_contents = NULL; + } if (etag_out) - *etag_out = ret_etag; - else - g_free (ret_etag); - ret_etag = NULL; + { + *etag_out = ret_etag; + ret_etag = NULL; + } ret = TRUE; out: g_free (ret_contents);