From 5605c66085c7c80f798cdd291badd6c5a1a5678d Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Thu, 28 Sep 2017 15:17:15 +0200 Subject: [PATCH] fix(ConferenceEventTester): fix test on Windows --- tester/conference-event-tester.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tester/conference-event-tester.cpp b/tester/conference-event-tester.cpp index 5c428120c..19e392046 100644 --- a/tester/conference-event-tester.cpp +++ b/tester/conference-event-tester.cpp @@ -692,7 +692,7 @@ void participant_unadmined_parsing() { size_t size = strlen(first_notify) + strlen(confUri); char *notify = new char[size]; size_t size2 = strlen(participant_unadmined_notify) + strlen(confUri); - char notify_unadmined[size2]; + char *notify_unadmined = new char[size2]; snprintf(notify, size, first_notify, confUri); tester.handler->notifyReceived(notify); @@ -708,7 +708,7 @@ void participant_unadmined_parsing() { snprintf(notify_unadmined, size2, participant_unadmined_notify, confUri); tester.handler->notifyReceived(notify_unadmined); - delete[] participant_unadmined_notify; + delete[] notify_unadmined; BC_ASSERT_EQUAL(tester.participants.size(), 2, int, "%d"); BC_ASSERT_TRUE(tester.participants.find(linphone_address_as_string(aliceAddr)) != tester.participants.end());