]> git.proxmox.com Git - qemu.git/commit
spice: fix initialization order
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 2 Nov 2012 08:37:27 +0000 (09:37 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 5 Nov 2012 10:54:49 +0000 (11:54 +0100)
commitbdd4df332a1bdb20b7fa39ea741f7830e41e1187
tree3f66ef947c8d3acc2fa7783c8d05245c2a9889c5
parent365b1e9e3486aaa55f30df6f16ecafffaef6ec98
spice: fix initialization order

Register displaychangelistener last, after spice is fully initialized,
otherwise we may hit NULL pointer dereferences when qemu starts calling
our callbacks.

Commit e250d949feb1334828f27f0d145c35f29c4b7639 triggers this bug.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl.c
ui/spice-display.c