Fix similar memory leaks as per commit: ef72484b78 Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
ef72484b78