summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-image.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-06-04 09:17:11 +0100
committerRichard Hughes <richard@hughsie.com>2014-06-04 09:17:19 +0100
commitc7421b696dd3fa56aa9c5ce85e5c3eb3991c59d3 (patch)
treeef775a9bba91bc909127b287da8e2d2a1d5b3347 /libappstream-glib/as-image.c
parent262fd898f66e26ae19f44995eade1bd64b7c3604 (diff)
downloadappstream-glib-c7421b696dd3fa56aa9c5ce85e5c3eb3991c59d3.tar.gz
trivial: Use systemd-style cleanup functions
There's no point creating yet another format...
Diffstat (limited to 'libappstream-glib/as-image.c')
-rw-r--r--libappstream-glib/as-image.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libappstream-glib/as-image.c b/libappstream-glib/as-image.c
index e0bec3d..0f8ea13 100644
--- a/libappstream-glib/as-image.c
+++ b/libappstream-glib/as-image.c
@@ -459,9 +459,9 @@ as_image_load_filename (AsImage *image,
{
AsImagePrivate *priv = GET_PRIVATE (image);
gsize len;
- _cleanup_free gchar *basename = NULL;
- _cleanup_free gchar *data = NULL;
- _cleanup_unref_object GdkPixbuf *pixbuf = NULL;
+ _cleanup_free_ gchar *basename = NULL;
+ _cleanup_free_ gchar *data = NULL;
+ _cleanup_object_unref_ GdkPixbuf *pixbuf = NULL;
/* get the contents so we can hash the predictable file data,
* rather than the unpredicatable (for JPEG) pixel data */
@@ -507,7 +507,7 @@ as_image_save_pixbuf (AsImage *image,
guint tmp_width;
guint pixbuf_height;
guint pixbuf_width;
- _cleanup_unref_object GdkPixbuf *pixbuf_tmp = NULL;
+ _cleanup_object_unref_ GdkPixbuf *pixbuf_tmp = NULL;
/* 0 means 'default' */
if (width == 0)
@@ -573,7 +573,7 @@ as_image_save_filename (AsImage *image,
AsImageSaveFlags flags,
GError **error)
{
- _cleanup_unref_object GdkPixbuf *pixbuf;
+ _cleanup_object_unref_ GdkPixbuf *pixbuf;
/* save source file */
pixbuf = as_image_save_pixbuf (image, width, height, flags);