Fixed memory leak in windowstyle drwing