Fixed icon resource leak

An HIcon that is created from a bitmap must be released by DestroyIcon.
Fixed unused event warning