Fix a few GDI memory leaks.

3 files changed