]> git.mxchange.org Git - flightgear.git/commit
FGPUIDialog: fix reading from already free'd memory.
authorThomas Geymayer <tomgey@gmail.com>
Fri, 28 Feb 2014 16:34:41 +0000 (17:34 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Fri, 28 Feb 2014 16:34:41 +0000 (17:34 +0100)
commitde38157916ac06e19c47fd3b596ec18329771ed1
tree45e1f4ce0d1c8deb4fd006c72f5a8c5e31634dae
parentdd6cccdda168318cd2a286986a7f08a6d3c5e339
FGPUIDialog: fix reading from already free'd memory.

Calls to updateValues can cause nested calls invalidating
the char* passed as argument, if retrieved from a
SGPropertyNode.
Probably SGPropertyNode should also be modified to return
a std::string instead of a pointer to an internal buffer.
src/GUI/FGPUIDialog.cxx
src/GUI/FGPUIDialog.hxx
src/GUI/dialog.hxx