Skip to content

Commit

Permalink
don't leak locals in item::transfer calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirato committed Sep 4, 2016
1 parent dcad831 commit 12791f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rpggame/rpggame.h
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,7 @@ struct item
delete[] o.description;
delete[] o.mdl;
o.uses.deletecontents();
rpgscript::freelocal(o.locals);

o = *this;
if(name) o.name = newstring(name);
Expand Down

0 comments on commit 12791f5

Please sign in to comment.