]> Git Repo - linux.git/commitdiff
kconfig: fix qconf segfault by deleting heap objects
authorChris Bainbridge <[email protected]>
Fri, 8 Jan 2016 20:44:04 +0000 (20:44 +0000)
committerMichal Marek <[email protected]>
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 <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
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;
 }
This page took 0.0598030000000001 seconds and 4 git commands to generate.