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:
Frediano Ziglio 2019-03-19 12:51:21 +00:00
parent 7f57ff0186
commit 52f716e1d2

View File

@ -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);
}
}