[virt-tools-list] [PATCH virt-viewer 2/4] rhbz#1007306 - Don't free session in virt_viewer_app_deactivate()
Jonathon Jongsma
jjongsma at redhat.com
Tue Feb 4 15:50:23 UTC 2014
yeah, I noticed a similar bug after sending this. This one obviously needs more work.
Jonathon
----- Original Message -----
> From: "Marc-André Lureau" <marcandre.lureau at gmail.com>
> To: "Jonathon Jongsma" <jjongsma at redhat.com>
> Cc: "virt" <virt-tools-list at redhat.com>
> Sent: Tuesday, February 4, 2014 5:01:57 AM
> Subject: Re: [virt-tools-list] [PATCH virt-viewer 2/4] rhbz#1007306 - Don't free session in
> virt_viewer_app_deactivate()
>
> I get this critical with this patch, when failing connection and going
> to connect dialog again (240baeeb44 introduced that clear_object):
>
> (remote-viewer:27693): remote-viewer-CRITICAL **:
> virt_viewer_app_create_session: assertion 'priv->session == NULL'
> failed
>
>
> On Mon, Feb 3, 2014 at 11:14 PM, Jonathon Jongsma <jjongsma at redhat.com>
> wrote:
> > deactivate() is called in response to a failed authentication attempt. If
> > the
> > session is cleared here, when a user attempts to re-authenticate, it will
> > issue
> > a warning and will not actually work. The session is freed in the dispose
> > function, so it will still be cleaned up properly.
> > ---
> > src/virt-viewer-app.c | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
> > index 6f29ae0..d9e6a60 100644
> > --- a/src/virt-viewer-app.c
> > +++ b/src/virt-viewer-app.c
> > @@ -1265,7 +1265,6 @@ virt_viewer_app_deactivate(VirtViewerApp *self,
> > gboolean connect_error)
> >
> > if (priv->session) {
> > virt_viewer_session_close(VIRT_VIEWER_SESSION(priv->session));
> > - g_clear_object(&priv->session);
> > }
> >
> > priv->connected = FALSE;
> > --
> > 1.8.5.3
> >
> > _______________________________________________
> > virt-tools-list mailing list
> > virt-tools-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/virt-tools-list
>
>
>
> --
> Marc-André Lureau
>
More information about the virt-tools-list
mailing list