[gtk/wip/baedert/for-master: 8/8] compare-render: Don't unref an invalid GFile
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 8/8] compare-render: Don't unref an invalid GFile
- Date: Sun, 7 Jul 2019 05:25:11 +0000 (UTC)
commit 042f7d117f4d0db6cb2074402cd8e4f6753e6318
Author: Timm Bäder <mail baedert org>
Date: Sun Jul 7 07:23:05 2019 +0200
compare-render: Don't unref an invalid GFile
We already unref it when the g_file_make_directory_with_parents fails.
testsuite/gsk/compare-render.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/testsuite/gsk/compare-render.c b/testsuite/gsk/compare-render.c
index a0e68a37cd..59a0bd2a3c 100644
--- a/testsuite/gsk/compare-render.c
+++ b/testsuite/gsk/compare-render.c
@@ -44,8 +44,8 @@ get_output_dir (void)
}
g_error_free (error);
}
-
- g_object_unref (file);
+ else
+ g_object_unref (file);
return output_dir;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]