]> git.tdb.fi Git - libs/core.git/commitdiff
Delete private data of Process on destruction
authorMikko Rasa <tdb@tdb.fi>
Tue, 20 Dec 2022 11:19:53 +0000 (13:19 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 20 Dec 2022 11:19:53 +0000 (13:19 +0200)
source/core/unix/process.cpp
source/core/windows/process.cpp

index 975fa223520486fd59122ae90e17e322fd4e755a..ee0a36d3b783ea30383470f6c411f3a007c54bed 100644 (file)
@@ -13,7 +13,9 @@ using namespace std;
 namespace Msp {
 
 Process::~Process()
-{ }
+{
+       delete priv;
+}
 
 void Process::platform_get_self_info(Private &priv)
 {
index aa0fad94e3699a6383628ef5c970124350673fdf..e19fd6b8f996fd78109880a2c0f59e9bee90b119 100644 (file)
@@ -44,6 +44,7 @@ Process::~Process()
 {
        CloseHandle(priv->info.hProcess);
        CloseHandle(priv->info.hThread);
+       delete priv;
 }
 
 void Process::platform_get_self_info(Private &priv)