]> git.mxchange.org Git - flightgear.git/commit
from the C++ FAQ:
authorehofman <ehofman>
Thu, 22 May 2003 08:42:38 +0000 (08:42 +0000)
committerehofman <ehofman>
Thu, 22 May 2003 08:42:38 +0000 (08:42 +0000)
commitc8f9fc0ae433428d29e70578197e2fb3a9a2b2d9
tree76286cc90e1a5a751256db9a55a16e9f0fbd6e7e
parent5c99b9308c41f0e648f79c262b36e5feaaa9bf85
from the C++ FAQ:

TITLE: Using delete [] versus delete

The extra "[]" warns the compiler that there is a whole array of objects here so that P's destructor must be called on each element of the array rather than just on P itself (which would be equivalent to the first element only).
src/GUI/dialog.cxx
src/GUI/menubar.cxx