mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
test-stream-device: Remove interface before next loop
We should not reuse the same interface twice as doing so will cause dangling pointers. Unregister it at every iteration. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
7f57ff0186
commit
52f716e1d2
@ -342,6 +342,7 @@ static void test_stream_device(TestFixture *fixture, gconstpointer user_data)
|
||||
g_assert(message_sizes_curr - message_sizes == 5 || !device_enabled);
|
||||
|
||||
check_vmc_error_message();
|
||||
spice_server_remove_interface(&vmc_instance.base);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user