Commit d26fc300 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

VLCMetadata tests: Avoid a potentially invalid read after call to SetUp from the test case

parent 64df75b1
......@@ -42,10 +42,14 @@ class VLCMetadataServices : public testing::Test
static libvlc_instance_t* vlcInstance;
static void SetUpTestCase()
cb.reset( new ServiceCb );
virtual void SetUp()
ml.reset( MediaLibraryFactory::create() );
cb.reset( new ServiceCb );
vlcInstance = libvlc_new( 0, NULL );
auto vlcService = new VLCMetadataService( vlcInstance );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment