Added __del__ method to GzipFile class that will flush and close the
object, if required.
diff --git a/Lib/gzip.py b/Lib/gzip.py
index 1c196a8..578a07b 100644
--- a/Lib/gzip.py
+++ b/Lib/gzip.py
@@ -251,6 +251,11 @@
             self.myfileobj.close()
             self.myfileobj = None
 
+    def __del__(self):
+        if (self.myfileobj is not None or
+            self.fileobj is not None):
+            self.close()
+        
     def flush(self):
         self.fileobj.flush()