Bug fixed on GDI objects leaks.