Commit 789686ce authored by Marc-André Lureau's avatar Marc-André Lureau
Browse files

Make sure the priv->window can be set to NULL

parent 421744f5
......@@ -267,8 +267,7 @@ vinagre_reverse_vnc_listener_set_window (VinagreReverseVncListener *listener,
if (listener->priv->window)
g_object_unref (listener->priv->window);
if (window)
listener->priv->window = g_object_ref (window);
listener->priv->window = window ? g_object_ref (window) : NULL;
}
/* vim: set ts=8: */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment