From 4e13a659bb40b66c19d4b15a885705fc23294454 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 30 Aug 2012 17:42:08 +0000 Subject: [PATCH] Fix #32402: live unwrap memory leak, more noticeable if you have many UV's pinned. --- intern/opennl/intern/opennl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/intern/opennl/intern/opennl.c b/intern/opennl/intern/opennl.c index 20b4c0a6681..71809cc7480 100644 --- a/intern/opennl/intern/opennl.c +++ b/intern/opennl/intern/opennl.c @@ -569,6 +569,8 @@ void nlDeleteContext(NLContext context_in) { __NL_DELETE(context->variable[i].a); } } + + __NL_DELETE_ARRAY(context->variable); } if(context->alloc_b) { __NL_DELETE_ARRAY(context->b);