Fixed some warnings.
A memory leak bug fixed. (Thanks to @win32asm)
Merge branch '3.4'