From a3665fa7671a29d8eb55dbf6ee948d6f578b7eec Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 15 Oct 2010 19:49:51 +0200 Subject: fixed memleak in AO QSF --- plugins/ao/eng_qsf/eng_qsf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/ao/eng_qsf') 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 -- cgit v1.2.3