mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-04 09:45:18 +00:00
Chain up to parent's dispose at the end of VirtViewerWindow::dispose
glib documentation says this should be the last thing done in the dispose() call, which makes sense as this could invalidate still-needed data in the parent object.
This commit is contained in:
parent
808715491b
commit
e7418992ea
@ -162,8 +162,6 @@ virt_viewer_window_dispose (GObject *object)
|
||||
VirtViewerWindowPrivate *priv = VIRT_VIEWER_WINDOW(object)->priv;
|
||||
GSList *it;
|
||||
|
||||
G_OBJECT_CLASS (virt_viewer_window_parent_class)->dispose (object);
|
||||
|
||||
if (priv->display) {
|
||||
g_object_unref(priv->display);
|
||||
priv->display = NULL;
|
||||
@ -191,6 +189,8 @@ virt_viewer_window_dispose (GObject *object)
|
||||
|
||||
g_value_unset(&priv->accel_setting);
|
||||
g_clear_object(&priv->toolbar);
|
||||
|
||||
G_OBJECT_CLASS (virt_viewer_window_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user