[easytag/wip/gio: 1/4] Fix memory leak in C++ GIOStream wrapper
- From: David King <davidk src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [easytag/wip/gio: 1/4] Fix memory leak in C++ GIOStream wrapper
 
- Date: Mon, 20 Oct 2014 22:27:11 +0000 (UTC)
 
commit d53f10969c2569e753db83cac80b79550c44eb72
Author: David King <amigadave amigadave com>
Date:   Mon Oct 20 22:55:36 2014 +0100
    Fix memory leak in C++ GIOStream wrapper
 src/tags/gio_wrapper.cc |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/tags/gio_wrapper.cc b/src/tags/gio_wrapper.cc
index 5287c56..a560577 100644
--- a/src/tags/gio_wrapper.cc
+++ b/src/tags/gio_wrapper.cc
@@ -186,8 +186,7 @@ GIO_IOStream::~GIO_IOStream ()
 
     if (stream)
     {
-        g_io_stream_close (G_IO_STREAM (stream), NULL, &error);
-        clear ();
+        g_object_unref (stream);
     }
 
     g_free (filename);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]