diff options
author | Eugene Sandulenko | 2013-04-28 23:05:15 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-04-28 23:59:20 +0300 |
commit | 2a4bf37aab10dbc9d6d36e8e693c80574f60c884 (patch) | |
tree | 350d73ff4bd96b45a7511cfbdb5e2b84d3f19ce6 | |
parent | e37bcb88842583fe696925b3e302bf2e329b228c (diff) | |
download | scummvm-rg350-2a4bf37aab10dbc9d6d36e8e693c80574f60c884.tar.gz scummvm-rg350-2a4bf37aab10dbc9d6d36e8e693c80574f60c884.tar.bz2 scummvm-rg350-2a4bf37aab10dbc9d6d36e8e693c80574f60c884.zip |
MOHAWK: Fix use after free. CID 1002114
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index a8b8c6a5d3..f80dbfacbd 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -589,8 +589,8 @@ void MohawkEngine_LivingBooks::updatePage() { _items.remove_at(i); i--; _orderedItems.remove(delayedEvent.item); - delete delayedEvent.item; _page->itemDestroyed(delayedEvent.item); + delete delayedEvent.item; if (_focus == delayedEvent.item) _focus = NULL; break; |