Fixed gain memory error

This commit is contained in:
Ryzerth 2020-08-16 17:56:12 +02:00
parent c4f49203a1
commit 19e07eb767
2 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@ if (MSVC)
include_directories(sdrpp "C:/Program Files/PothosSDR/include/volk/")
include_directories(sdrpp "C:/Program Files/PothosSDR/include/")
else()
# set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -fsanitize=address -g")
set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -fsanitize=address -g")
# set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -fpremissive -fsanitize=address -g")
set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -fpremissive")
include_directories(sdrpp "/usr/include/volk")
link_libraries(pthread)
link_libraries(GL)

View File

@ -159,7 +159,7 @@ void windowInit() {
vfoman::init(&wtf, &sigPath);
uiGains = new float[1];
uiGains = new float[soapy.gainList.size()];
spdlog::info("Loading modules");
mod::initAPI(&wtf);