From 0054c771b25ce0060a80405824d02b7f72191885 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sun, 2 Dec 2018 12:51:20 -0800 Subject: [PATCH] Properly release Curves on creation; --- src/api/math.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/math.c b/src/api/math.c index dd3cab2b..20a2a57c 100644 --- a/src/api/math.c +++ b/src/api/math.c @@ -94,6 +94,7 @@ static int l_lovrMathNewCurve(lua_State* L) { } luax_pushobject(L, curve); + lovrRelease(curve); return 1; }