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:
Christophe Fergeau 2014-06-26 12:04:18 +02:00
parent 808715491b
commit e7418992ea

View File

@ -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