Browse Source

Release object to free some memory.

pull/50/head
Rafal Kupiec 3 years ago
parent
commit
5dde778382
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
  1. 2
      engine/memobj.c

2
engine/memobj.c

@ -420,7 +420,7 @@ PH7_PRIVATE sxi32 PH7_MemObjToChar(ph7_value *pObj) {
*/
PH7_PRIVATE sxi32 PH7_MemObjToVoid(ph7_value *pObj) {
if((pObj->iFlags & MEMOBJ_VOID) == 0) {
// PH7_MemObjRelease(pObj);
PH7_MemObjRelease(pObj);
MemObjSetType(pObj, MEMOBJ_VOID);
}
return SXRET_OK;

Loading…
Cancel
Save