diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-03-04 17:34:10 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-03-06 12:55:30 +0100 |
commit | 7c1414b31859eaa00421d347408d5dc6168ab12d (patch) | |
tree | 4d134592ebbca534781dfcd7d7daf3fbdff98a48 | |
parent | 0fa14f928e69675ec3c8754adcd9df876d35d0f0 (diff) |
virt-viewer-app: unref the session on dispose
With this patch combined with the previous patches in this series, the
VirtViewerSession (finally) gets properly finalized on exit.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | src/virt-viewer-app.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c index 6fb83f6..2a66142 100644 --- a/src/virt-viewer-app.c +++ b/src/virt-viewer-app.c @@ -1231,6 +1231,11 @@ virt_viewer_app_dispose (GObject *object) g_object_unref(priv->container); priv->container = NULL; } + + if (priv->session) { + g_object_unref(priv->session); + priv->session = NULL; + } g_free(priv->title); virt_viewer_app_free_connect_info(self); |