diff options
author | Richard Hughes <richard@hughsie.com> | 2014-06-03 08:18:59 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-06-03 08:18:59 +0100 |
commit | 262fd898f66e26ae19f44995eade1bd64b7c3604 (patch) | |
tree | 57e1ba7a0b21075e02db0b7ab13b704bb511b072 /libappstream-glib/as-image.c | |
parent | 17088bc4b1a37f365b3475ac5d5724c95413ddbb (diff) | |
download | appstream-glib-262fd898f66e26ae19f44995eade1bd64b7c3604.tar.gz |
trivial: Use a common style where the _cleanup is done last in the block
Diffstat (limited to 'libappstream-glib/as-image.c')
-rw-r--r-- | libappstream-glib/as-image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-glib/as-image.c b/libappstream-glib/as-image.c index 7c7b869..e0bec3d 100644 --- a/libappstream-glib/as-image.c +++ b/libappstream-glib/as-image.c @@ -458,10 +458,10 @@ as_image_load_filename (AsImage *image, GError **error) { AsImagePrivate *priv = GET_PRIVATE (image); + gsize len; _cleanup_free gchar *basename = NULL; _cleanup_free gchar *data = NULL; _cleanup_unref_object GdkPixbuf *pixbuf = NULL; - gsize len; /* get the contents so we can hash the predictable file data, * rather than the unpredicatable (for JPEG) pixel data */ @@ -503,11 +503,11 @@ as_image_save_pixbuf (AsImage *image, { AsImagePrivate *priv = GET_PRIVATE (image); GdkPixbuf *pixbuf = NULL; - _cleanup_unref_object GdkPixbuf *pixbuf_tmp = NULL; guint tmp_height; guint tmp_width; guint pixbuf_height; guint pixbuf_width; + _cleanup_unref_object GdkPixbuf *pixbuf_tmp = NULL; /* 0 means 'default' */ if (width == 0) |