瀏覽代碼

kconfig: fix qconf segfault by deleting heap objects

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>
Chris Bainbridge 9 年之前
父節點
當前提交
5b61c7bd25
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scripts/kconfig/qconf.cc

+ 2 - 0
scripts/kconfig/qconf.cc

@@ -1863,6 +1863,8 @@ int main(int ac, char** av)
 
 
 	configSettings->endGroup();
 	configSettings->endGroup();
 	delete configSettings;
 	delete configSettings;
+	delete v;
+	delete configApp;
 
 
 	return 0;
 	return 0;
 }
 }