From d5d30cc08a02c32b0683c31ba26caa4bffca49bd Mon Sep 17 00:00:00 2001 From: avolkov Date: Tue, 30 Aug 2011 15:59:39 +0000 Subject: [PATCH] Fix double free() of RandomContext in Melnorme comm git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3678 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/uqm/comm/melnorm/melnorm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/uqm/comm/melnorm/melnorm.c b/sc2/src/uqm/comm/melnorm/melnorm.c index a88a87200..9b7fcae78 100644 --- a/sc2/src/uqm/comm/melnorm/melnorm.c +++ b/sc2/src/uqm/comm/melnorm/melnorm.c @@ -712,8 +712,8 @@ StripShip (COUNT fuel_required) end_mod = which_module; ++module_count[which_module]; total += GLOBAL (ModuleCost[which_module]); - RandomContext_Delete (rc); } + RandomContext_Delete (rc); if (total == 0) {