Remove extra ref on SpiceDisplay

There's no need to ref the SpiceDisplay widget when adding it to a
container. The container will take its own ref.
This commit is contained in:
Jonathon Jongsma 2014-09-09 16:45:26 -05:00
parent 401906afd7
commit 8f16b38f9e

View File

@ -298,7 +298,7 @@ virt_viewer_display_spice_new(VirtViewerSessionSpice *session,
G_CONNECT_SWAPPED);
update_display_ready(self);
gtk_container_add(GTK_CONTAINER(self), g_object_ref(self->priv->display));
gtk_container_add(GTK_CONTAINER(self), GTK_WIDGET(self->priv->display));
gtk_widget_show(GTK_WIDGET(self->priv->display));
g_object_set(self->priv->display,
"grab-keyboard", TRUE,