mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-26 10:03:42 +03:00
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:
parent
9413c580ef
commit
68c7073a25
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user