timed-revealer: Fix "revealer" refcounting

virt_viewer_timed_revealer_new calls gtk_container_add on the instance
returned by gtk_revealer_new so VirtViewerTimedRevealer does not own any
ref on this GtkRevealer instance. Unrefing it in _dispose() is thus wrong.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
Christophe Fergeau 2016-06-28 16:39:31 +02:00 committed by Fabiano Fidêncio
parent 9413c580ef
commit 68c7073a25

View File

@ -126,7 +126,7 @@ virt_viewer_timed_revealer_dispose(GObject *object)
VirtViewerTimedRevealerPrivate *priv = self->priv;
g_clear_object(&priv->evBox);
g_clear_object(&priv->revealer);
priv->revealer = NULL;
if (priv->timeout_id) {
g_source_remove(priv->timeout_id);