Skip to content

Commit

Permalink
Fixed crash in Finalize()
Browse files Browse the repository at this point in the history
  • Loading branch information
zenden2k committed Oct 7, 2022
1 parent 87e8fc5 commit 8280290
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion KeeneticPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ PLUGIN_EXPORT double Update(void* data) {

PLUGIN_EXPORT void Finalize(void* data) {
auto* measure = static_cast<Measure*>(data);
measure->worker->abort();
if (measure->worker) {
measure->worker->abort();
}
delete measure;
worker.reset();
}
4 changes: 2 additions & 2 deletions KeeneticPlugin.rc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,4,0
FILEVERSION 1,0,5,0
PRODUCTVERSION 3,0,2,2161
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
Expand All @@ -24,7 +24,7 @@ BEGIN
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "FileVersion", "1.0.4.0"
VALUE "FileVersion", "1.0.5.0"
VALUE "LegalCopyright", "� 2021 - Sergey Svistunov"

// Don't change the entries below!
Expand Down

0 comments on commit 8280290

Please sign in to comment.