Fix double-free for MMainWindow
authorAlban Crequy <alban.crequy@collabora.co.uk>
Thu, 8 Jul 2010 16:06:09 +0000 (17:06 +0100)
committerAlban Crequy <alban.crequy@collabora.co.uk>
Thu, 8 Jul 2010 16:06:09 +0000 (17:06 +0100)
commitffb79279ecb0d021ac3d25c77b008bac29c2a6ef
tree247178ec45301a2e75a4b3b5f7dda9bc9af56f8a
parent6cefba36fe55a98abdac82747c467848bedf185c
Fix double-free for MMainWindow

MPreGame is allocated on the stack and MMainWindow was part of it. MMainWindow
is automatically deleted when the window is closed so it should not be on the
stack.
src/pregame.cc
src/pregame.h