summaryrefslogtreecommitdiff
path: root/src/vtestream-file.h
diff options
context:
space:
mode:
authorEric R. Schulz <eric@ers35.com>2016-08-27 00:55:11 +0200
committerEgmont Koblinger <egmont@gmail.com>2016-08-27 00:55:11 +0200
commit2796f97eca37613128ee2a4c71e85cad2bfea643 (patch)
tree7841a0a31c529c10fe16a1d7613c99357b701af5 /src/vtestream-file.h
parent7f09dc6a4bef5f4eb4ffc61d204575f543b9a8d8 (diff)
downloadvte-2796f97eca37613128ee2a4c71e85cad2bfea643.tar.gz
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
Diffstat (limited to 'src/vtestream-file.h')
-rw-r--r--src/vtestream-file.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index c006dc44..ad06b3d3 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);