Follow-up to r17351 - Fixed memory leaks.  Thanks Lighta and Lemongrass for helping!

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17388 54d463be-8e91-2dee-dedb-b68131a5f0ec