From 96f3f841dab8aaa50feb6507e9d791d19393788f Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 19 Jun 2015 16:51:45 +0000 Subject: [PATCH] reported by shpuld. fix my fix for ktx memory leaks. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4910 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_model.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/gl/gl_model.c b/engine/gl/gl_model.c index 13e333251..14479dad9 100644 --- a/engine/gl/gl_model.c +++ b/engine/gl/gl_model.c @@ -523,6 +523,9 @@ void Mod_Purge(enum mod_purge_e ptype) ZG_FreeGroup(&mod->memgroup); mod->meshinfo = NULL; mod->loadstate = MLS_NOTLOADED; + + mod->pvs = NULL; + mod->phs = NULL; } } }