mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 14:54:14 +00:00
Set freed priv->dom to NULL in _dispose()
Avoid a possible use/free after the object has been freed.
This commit is contained in:
parent
de8b381fa4
commit
333ba4fe51
@ -538,8 +538,10 @@ virt_viewer_dispose (GObject *object)
|
||||
virConnectClose(priv->conn);
|
||||
priv->conn = NULL;
|
||||
}
|
||||
if (priv->dom)
|
||||
if (priv->dom) {
|
||||
virDomainFree(priv->dom);
|
||||
priv->dom = NULL;
|
||||
}
|
||||
g_free(priv->uri);
|
||||
priv->uri = NULL;
|
||||
g_free(priv->domkey);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user