window: remove faulty g_free()

Freeing uid variant results in bloody segfaults.