codegen: Explicitly close output
authorColin Walters <walters@verbum.org>
Wed, 26 Sep 2012 19:44:33 +0000 (15:44 -0400)
committerColin Walters <walters@verbum.org>
Fri, 5 Oct 2012 20:50:48 +0000 (16:50 -0400)
This is just cleaner rather than relying on the GC, and maybe
if we're lucky it will actually solve a problem.

https://bugzilla.gnome.org/show_bug.cgi?id=684909

gio/gdbus-2.0/codegen/codegen_main.py

index 0fa9e79..aa7984e 100755 (executable)
@@ -194,6 +194,8 @@ def codegen_main():
                                     docbook_gen,
                                     h, c);
         ret = gen.generate()
+        h.close()
+        c.close()
 
     sys.exit(0)