From cff59873292e1f65eb37335836cff0f12402416f Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Sun, 16 Aug 2020 18:22:22 +0200 Subject: [PATCH] Fixed delete[] in soapy.h --- src/main_window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main_window.cpp b/src/main_window.cpp index f494af54..a8137106 100644 --- a/src/main_window.cpp +++ b/src/main_window.cpp @@ -530,9 +530,10 @@ void drawWindow() { if (ImGui::Button("Refresh", ImVec2(menuColumnWidth - ImGui::GetCursorPosX(), 0.0f))) { soapy.refresh(); if (noDevice && soapy.devList.size() > 0) { + sourceName = soapy.devNameList[0]; soapy.setDevice(soapy.devList[0]); - if (config::config["sourceSettings"][soapy.devNameList[0]]) { - loadSourceConfig(soapy.devNameList[0]); + if (config::config["sourceSettings"][sourceName]) { + loadSourceConfig(sourceName); } } }