aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-04-11 15:38:31 -0500
committerPaul Gilbert2015-04-11 15:38:31 -0500
commitdd63cef93efce72b300c99a6a8b9415a111c2b82 (patch)
tree6514c2cfda8210b57d6fdeb5b8cbe31d916ea470
parent3323af355dd081428c114c4b15b4abc7307115c0 (diff)
downloadscummvm-rg350-dd63cef93efce72b300c99a6a8b9415a111c2b82.tar.gz
scummvm-rg350-dd63cef93efce72b300c99a6a8b9415a111c2b82.tar.bz2
scummvm-rg350-dd63cef93efce72b300c99a6a8b9415a111c2b82.zip
MADS: Fix memory leak in Dialog class
-rw-r--r--engines/mads/dialogs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mads/dialogs.cpp b/engines/mads/dialogs.cpp
index 158d9693ad..7f0b02bc65 100644
--- a/engines/mads/dialogs.cpp
+++ b/engines/mads/dialogs.cpp
@@ -43,6 +43,7 @@ Dialog::Dialog(MADSEngine *vm)
}
Dialog::~Dialog() {
+ delete _savedSurface;
}
void Dialog::save() {