Fix #32402: live unwrap memory leak, more noticeable if you have many UV's pinned.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 30 Aug 2012 17:42:08 +0000 (17:42 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 30 Aug 2012 17:42:08 +0000 (17:42 +0000)
intern/opennl/intern/opennl.c

index 20b4c0a66811083cf3d316cfa3961ddcccd4e4d6..71809cc7480a9ea749709ff2fefeb6610f202357 100644 (file)
@@ -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);