[gcab] Fix leak
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcab] Fix leak
- Date: Tue, 15 Jan 2013 20:54:47 +0000 (UTC)
commit 301a6b90855da359b3abfe64cffa066fd937047d
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Mon Jan 14 16:17:54 2013 +0100
Fix leak
libgcab/gcab-cabinet.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgcab/gcab-cabinet.c b/libgcab/gcab-cabinet.c
index cc9a072..12fad3a 100644
--- a/libgcab/gcab-cabinet.c
+++ b/libgcab/gcab-cabinet.c
@@ -205,6 +205,7 @@ gcab_cabinet_write (GCabCabinet *self,
if (file_callback)
file_callback (file, callback_data);
+ g_clear_object (&in);
in = G_INPUT_STREAM (g_file_read (file->file, cancellable, error));
if (*error)
goto end;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]