window-actor: Use g_clear_pointer