From: Mikko Rasa Date: Tue, 20 Dec 2022 11:19:53 +0000 (+0200) Subject: Delete private data of Process on destruction X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0493c7ecdba517a14966be0bc6f233bd930cc648;p=libs%2Fcore.git Delete private data of Process on destruction --- diff --git a/source/core/unix/process.cpp b/source/core/unix/process.cpp index 975fa22..ee0a36d 100644 --- a/source/core/unix/process.cpp +++ b/source/core/unix/process.cpp @@ -13,7 +13,9 @@ using namespace std; namespace Msp { Process::~Process() -{ } +{ + delete priv; +} void Process::platform_get_self_info(Private &priv) { diff --git a/source/core/windows/process.cpp b/source/core/windows/process.cpp index aa0fad9..e19fd6b 100644 --- a/source/core/windows/process.cpp +++ b/source/core/windows/process.cpp @@ -44,6 +44,7 @@ Process::~Process() { CloseHandle(priv->info.hProcess); CloseHandle(priv->info.hThread); + delete priv; } void Process::platform_get_self_info(Private &priv)