]> xenbits.xensource.com Git - libvirt.git/commit
vboxDumpDisplay: allocate the graphics structure upfront
authorJán Tomko <jtomko@redhat.com>
Fri, 5 Feb 2016 15:42:26 +0000 (16:42 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 9 Feb 2016 09:09:19 +0000 (10:09 +0100)
commit026bcfdcad7378f437bfec72324465c47f7fde7f
treed9d5efa86e7ee0690029bc134e259d9b12fdd4b1
parentef98d93bed69aa42b84cbaeb414ebf619a9b98bc
vboxDumpDisplay: allocate the graphics structure upfront

Allocate it as soon as we know we will need it.

Add it to def->ngraphics if it's allocated, removing the need
to use the addDesktop and totalPresent variables to track this.
src/vbox/vbox_common.c