diff --git a/girepository/tools/compiler.c b/girepository/tools/compiler.c index 700305ed8..182b00b36 100644 --- a/girepository/tools/compiler.c +++ b/girepository/tools/compiler.c @@ -110,6 +110,8 @@ write_out_typelib (gchar *prefix, } success = TRUE; out: + g_clear_object (&file_obj); + g_clear_object (&tmp_file_obj); g_free (filename); g_free (tmp_filename);