Skip to content

Commit

Permalink
Plugins.cpp: C6011: Using uninitialized memory 'scripts'.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Nov 23, 2024
1 parent 0a3063a commit 846004d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1188,8 +1188,9 @@ CAssureScriptsForThread::~CAssureScriptsForThread()
return;
if (scripts->Unlock())
{
auto* scriptsSaved = scripts;
delete scripts;
CAllThreadsScripts::Remove(scripts);
CAllThreadsScripts::Remove(scriptsSaved);
}
}

Expand Down

0 comments on commit 846004d

Please sign in to comment.