[vte] widget: Fix memory leak in _vte_file_stream_init()
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Fix memory leak in _vte_file_stream_init()
- Date: Fri, 26 Aug 2016 22:57:55 +0000 (UTC)
commit 2796f97eca37613128ee2a4c71e85cad2bfea643
Author: Eric R. Schulz <eric ers35 com>
Date: Sat Aug 27 00:55:11 2016 +0200
widget: Fix memory leak in _vte_file_stream_init()
g_object_new() calls _vte_boa_init(), so calling the init twice leaks memory.
The bug was introduced in commit ab8b3a3465625e08e4aa5657d13d54b6818a231a.
https://bugzilla.gnome.org/show_bug.cgi?id=770038
src/vtestream-file.h | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index c006dc4..ad06b3d 100644
--- a/src/vtestream-file.h
+++ b/src/vtestream-file.h
@@ -1065,7 +1065,6 @@ static void
_vte_file_stream_init (VteFileStream *stream)
{
stream->boa = (VteBoa *)g_object_new (VTE_TYPE_BOA, NULL);
- _vte_boa_init (stream->boa);
stream->rbuf = (char *)g_malloc(VTE_BOA_BLOCKSIZE);
stream->wbuf = (char *)g_malloc(VTE_BOA_BLOCKSIZE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]