Fix memory leak in ctorNilPtrPlacementProxy
This commit is contained in:
parent
f26257d6e4
commit
3dfcbf17b2
@ -485,8 +485,8 @@ private:
|
||||
template <class T>
|
||||
static int ctorNilPtrPlacementProxy (lua_State* L)
|
||||
{
|
||||
const T* newobject = new T ();
|
||||
Stack<T>::push (L, *newobject);
|
||||
const T newobject;
|
||||
Stack<T>::push (L, newobject);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user