Fix crash in wxCommandProcessor of capacity N when N-1 commands were undone.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 May 2010 23:38:31 +0000 (23:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 May 2010 23:38:31 +0000 (23:38 +0000)
commit1544ba0edc8d1791d1d3a79bb0451831d0408051
treedbd56fbebbea2a0c2c570c6453b760ea7ad185fd
parenta104022931420a383fb7274b1267807e6d490bf1
Fix crash in wxCommandProcessor of capacity N when N-1 commands were undone.

Performing N commands (where N is the maximal number of commands stored by
wxCommandProcessor), undoing N-1 of them and performing another command
resulted in a crash because a dangling pointer was left.

Closes #12027.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/cmdproc.cpp