Skip to content

Commit

Permalink
kconfig: fix qconf segfault by deleting heap objects
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Bainbridge authored and Michal Marek committed Jan 11, 2016
1 parent aab24a8 commit 5b61c7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1863,6 +1863,8 @@ int main(int ac, char** av)

configSettings->endGroup();
delete configSettings;
delete v;
delete configApp;

return 0;
}

0 comments on commit 5b61c7b

Please sign in to comment.