]> git.karo-electronics.de Git - linux-beck.git/commitdiff
kconfig: fix qconf segfault by deleting heap objects
authorChris Bainbridge <chris.bainbridge@gmail.com>
Fri, 8 Jan 2016 20:44:04 +0000 (20:44 +0000)
committerMichal Marek <mmarek@suse.com>
Mon, 11 Jan 2016 08:45:08 +0000 (09:45 +0100)
On Debian stable (qt-4.8.6) 'make xconfig' intermittently fails due to
qconf segfaulting at exit time in QXcbEventReader. The cause of this is
destructors on the heap objects never being called, so fix this by
properly deleting the heap objects before exit.

Signed-off-by: Chris Bainbridge <chris.bainbridge@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/kconfig/qconf.cc

index 91b7e6fbc364ae53846130eb2a82517c422eb5d4..fc5555992220956d31ce82b765b8ab6f35898379 100644 (file)
@@ -1863,6 +1863,8 @@ int main(int ac, char** av)
 
        configSettings->endGroup();
        delete configSettings;
+       delete v;
+       delete configApp;
 
        return 0;
 }