mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-11 08:07:25 +00: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…
Reference in New Issue
Block a user