mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 11:06:18 +00:00
reds: Remove leak allocating migration state
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
7a3bfedfbe
commit
343ac9f78d
@ -3378,7 +3378,7 @@ SPICE_GNUC_VISIBLE int spice_server_add_interface(SpiceServer *reds,
|
||||
return -1;
|
||||
}
|
||||
reds->migration_interface = SPICE_CONTAINEROF(sin, SpiceMigrateInstance, base);
|
||||
reds->migration_interface->st = spice_new0(SpiceMigrateState, 1);
|
||||
reds->migration_interface->st = (SpiceMigrateState *)(intptr_t)1; // dummy pointer
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@ -35,10 +35,6 @@ static inline QXLInterface * qxl_get_interface(QXLInstance *qxl)
|
||||
return SPICE_CONTAINEROF(qxl->base.sif, QXLInterface, base);
|
||||
}
|
||||
|
||||
struct SpiceMigrateState {
|
||||
int dummy;
|
||||
};
|
||||
|
||||
/* main thread only */
|
||||
void reds_handle_channel_event(RedsState *reds, int event, SpiceChannelEventInfo *info);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user