File vte-Fix-memory-leak-in_vte_file_stream_init.patch of Package vte.4189

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

diff -aur vte-0.44.2-orig/src/vtestream-file.h vte-0.44.2/src/vtestream-file.h
--- vte-0.44.2-orig/src/vtestream-file.h	2017-01-24 13:35:44.000000000 +0100
+++ vte-0.44.2/src/vtestream-file.h	2017-01-24 13:50:05.000000000 +0100
@@ -1065,7 +1065,6 @@
 _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);
openSUSE Build Service is sponsored by