From c1f986921d396071b0c9b4684bf88909bdefa0f4 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Wed, 29 Apr 2020 19:51:32 -0400 Subject: [PATCH] Clean up memory leak I created --- oscar/SleepLib/loader_plugins/resmed_loader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index 3b0291d5..2ae30a9b 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -462,6 +462,7 @@ int ResmedLoader::Open(const QString & dirpath) qDebug() << filename << "overlaps" << STRmap[date].filename << "for" << days; if (days <= STRmap[date].days) { qDebug() << "Skipping" << filename; + delete stredf; continue; } }