Skip to content

Commit

Permalink
Fix leaking StringMapSnapshot handle
Browse files Browse the repository at this point in the history
  • Loading branch information
nosoop committed Jul 12, 2022
1 parent 9724bc5 commit 006b99b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripting/cwx.sp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ int Native_GetItemList(Handle plugin, int argc) {
itemList.PushString(itemuid);
}
}
delete itemSnapshot;

return MoveHandle(itemList, plugin);
}

Expand Down

0 comments on commit 006b99b

Please sign in to comment.