summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-10-15 19:49:51 +0200
committerGravatar waker <wakeroid@gmail.com>2010-10-15 19:49:51 +0200
commita3665fa7671a29d8eb55dbf6ee948d6f578b7eec (patch)
treea206eaa30149375f070d69e1d5e593d788a52903
parentf9c4dbe0238b902b3c0b62e754906aec93807244 (diff)
fixed memleak in AO QSF
-rw-r--r--plugins/ao/eng_qsf/eng_qsf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/ao/eng_qsf/eng_qsf.c b/plugins/ao/eng_qsf/eng_qsf.c
index f5bc5c3c..130b5d2c 100644
--- a/plugins/ao/eng_qsf/eng_qsf.c
+++ b/plugins/ao/eng_qsf/eng_qsf.c
@@ -248,6 +248,10 @@ void *qsf_start(const char *path, uint8 *buffer, uint32 length)
// Dispose the corlett structure for the lib - we don't use it
free(lib);
+ if (lib_decoded) {
+ free (lib_decoded);
+ lib_decoded = NULL;
+ }
}
// now patch the file into RAM OVER the libraries