A memory leak bug fixed. (Thanks to @win32asm)