[glib] codegen: Explicitly close output



commit ce06987449660eb4ca0b3ad7ecc5801b4ae2164f
Author: Colin Walters <walters verbum org>
Date:   Wed Sep 26 15:44:33 2012 -0400

    codegen: Explicitly close output
    
    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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdbus-2.0/codegen/codegen_main.py b/gio/gdbus-2.0/codegen/codegen_main.py
index 0fa9e79..aa7984e 100755
--- a/gio/gdbus-2.0/codegen/codegen_main.py
+++ b/gio/gdbus-2.0/codegen/codegen_main.py
@@ -194,6 +194,8 @@ def codegen_main():
                                     docbook_gen,
                                     h, c);
         ret = gen.generate()
+        h.close()
+        c.close()
 
     sys.exit(0)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]