If winefile is unable to create a window, it frees the child pointer. However, it then proceeds to use the child pointer.