From 4d44a1df4fd60db66e7f4b793ad29ef17a9fec1a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 31 Oct 2006 08:31:14 +0000 Subject: [PATCH] Fixed a bug where dynamic arrays might not be freed in loops --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40133 --- sourcepawn/compiler/sc1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index 5944a520..189b9238 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -5574,6 +5574,7 @@ static void docont(void) return; destructsymbols(&loctab,nestlevel); genstackfree(ptr[wqCONT]); + genheapfree(ptr[wqCONT]); jumplabel(ptr[wqLOOP]); }