forked from UNLOZE/sm-plugins
CloseHandle -> delete
This commit is contained in:
@@ -290,7 +290,7 @@ native bool json_object_update_missing(JSONObject hObj, JSONObject hOther);
|
||||
*
|
||||
* // Do something with sKey and hValue
|
||||
*
|
||||
* CloseHandle(hValue);
|
||||
* delete hValue;
|
||||
*
|
||||
* hIterator = json_object_iter_next(hObj, hIterator);
|
||||
* }
|
||||
@@ -1575,7 +1575,7 @@ public JSONObject json_pack_object_(const char[] sFormat, int &iPos, Handle hPar
|
||||
|
||||
if(this_char != 115) {
|
||||
LogError("Object keys must be strings at %d.", iPos);
|
||||
CloseHandle(hObj);
|
||||
delete hObj;
|
||||
return view_as<JSONObject>(INVALID_HANDLE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user