summaryrefslogtreecommitdiff
path: root/tests/test-shape.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-shape.c')
-rw-r--r--tests/test-shape.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-shape.c b/tests/test-shape.c
index 043f3d31..be3e4415 100644
--- a/tests/test-shape.c
+++ b/tests/test-shape.c
@@ -361,7 +361,10 @@ main (int argc, char *argv[])
g_free (path);
if (g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
- return 0;
+ {
+ g_error_free (error);
+ return 0;
+ }
g_assert_no_error (error);
while ((name = g_dir_read_name (dir)) != NULL)