Revision 452b4d88

b/vnc.c
2333 2333
{
2334 2334
    VncState *vs = ds ? (VncState *)ds->opaque : vnc_state;
2335 2335

  
2336
    if (!vs)
2337
        return;
2336 2338
    if (vs->display) {
2337 2339
	qemu_free(vs->display);
2338 2340
	vs->display = NULL;
......
2392 2394
    int tls = 0, x509 = 0;
2393 2395
#endif
2394 2396

  
2397
    if (!vnc_state)
2398
        return -1;
2395 2399
    vnc_display_close(ds);
2396 2400
    if (strcmp(display, "none") == 0)
2397 2401
	return 0;

Also available in: Unified diff