[easytag/easytag-2-2] Fix memory leak in C++ GIOStream wrapper
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/easytag-2-2] Fix memory leak in C++ GIOStream wrapper
- Date: Mon, 20 Oct 2014 22:38:59 +0000 (UTC)
commit d59245764862544925a9cfb4dbe1e1ea59ae535d
Author: David King <amigadave amigadave com>
Date: Mon Oct 20 22:55:36 2014 +0100
Fix memory leak in C++ GIOStream wrapper
src/gio_wrapper.cc | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gio_wrapper.cc b/src/gio_wrapper.cc
index e35b2f1..c4b6686 100644
--- a/src/gio_wrapper.cc
+++ b/src/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]