free it by using the deletedc function:
CreateCompatibleDC
DeleteDC
ReleaseDC