[gcab] trivial: Close the GOutputStream when the file has been decompressed



commit 7b7c86329c4b5ee909c7e73612ec5f42d3805af2
Author: Richard Hughes <richard hughsie com>
Date:   Fri Dec 15 10:01:26 2017 +0000

    trivial: Close the GOutputStream when the file has been decompressed

 libgcab/gcab-folder.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgcab/gcab-folder.c b/libgcab/gcab-folder.c
index 1b3be1c..c46f383 100644
--- a/libgcab/gcab-folder.c
+++ b/libgcab/gcab-folder.c
@@ -441,6 +441,9 @@ gcab_folder_extract (GCabFolder *self,
                 uoffset += count;
             }
         }
+
+        if (!g_output_stream_close (out, cancellable, error))
+            return FALSE;
     }
 
     return TRUE;


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