From 3bac0ba27a4d3d9f96476cac733c14c7ac07320d Mon Sep 17 00:00:00 2001 From: Casey Langen Date: Sat, 7 Nov 2020 22:17:50 -0800 Subject: [PATCH] Fix regex deallocation. --- src/musikcore/db/SqliteExtensions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/musikcore/db/SqliteExtensions.cpp b/src/musikcore/db/SqliteExtensions.cpp index ac48e6ef6..9175276ac 100644 --- a/src/musikcore/db/SqliteExtensions.cpp +++ b/src/musikcore/db/SqliteExtensions.cpp @@ -824,7 +824,7 @@ static void likeFunc( */ static void regexpDelete(void* p) { std::regex* regex = (std::regex*) p; - delete p; + delete regex; } /*