mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
conf: Actually make virDomainChrSourceDef an object
In 2ada9ef146
we've tried to turn virDomainChrSourceDef into
virObject. Well, this requires 'virObject' member to be stored on
the first position of the struct. This adjustment is missing in
the original commit leading to all sorts of funny memleaks and
data corruptions.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
This commit is contained in:
parent
6a9bdf3f25
commit
f574e2e521
@ -1180,6 +1180,7 @@ typedef virDomainChrSourceReconnectDef *virDomainChrSourceReconnectDefPtr;
|
||||
|
||||
/* The host side information for a character device. */
|
||||
struct _virDomainChrSourceDef {
|
||||
virObject parent;
|
||||
int type; /* virDomainChrType */
|
||||
virObjectPtr privateData;
|
||||
union {
|
||||
|
Loading…
Reference in New Issue
Block a user