]> git.mxchange.org Git - flightgear.git/commit
Fix occasional start-up crash when reading GUI XMLs.
authorThorstenB <brehmt@gmail.com>
Sun, 24 Oct 2010 19:36:15 +0000 (21:36 +0200)
committerThorstenB <brehmt@gmail.com>
Sun, 24 Oct 2010 19:36:15 +0000 (21:36 +0200)
commitd61e992d765f0b7c59c74e8cb0d6004d5f2e596d
treeae70bec50afac09051aba9b1338a00035a3a9a8a
parent957a59e57a7be92fd64a0c1278a6f04d0f31d327
Fix occasional start-up crash when reading GUI XMLs.
_dialog_props holds SGSharedPtrs (pointers managed by reference counters).
Explicitly casting the object to an unmanaged SGPropertyNode* and deleting it
may cause heap corruption, since the following assignment "_dialog_props[..] = ..."
also tries to delete the (already deleted) object.
src/GUI/new_gui.cxx