We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96c69fc + 02c0cbc commit 2b978f1Copy full SHA for 2b978f1
lib/Backend/NativeEntryPointData.cpp
@@ -323,10 +323,17 @@ NativeEntryPointData::CleanupXDataInfo()
323
{
324
XDataAllocator::Unregister(this->xdataInfo);
325
#ifdef _WIN32
326
- if (this->xdataInfo->functionTable
327
- && !DelayDeletingFunctionTable::AddEntry(this->xdataInfo))
+ if (AutoSystemInfo::Data.IsWin8OrLater())
328
329
- DelayDeletingFunctionTable::DeleteFunctionTable(this->xdataInfo);
+ // transfers ownership of xdataInfo object
+ if(!DelayDeletingFunctionTable::AddEntry(this->xdataInfo))
330
+ {
331
+ DelayDeletingFunctionTable::DeleteFunctionTable(this->xdataInfo);
332
+ }
333
334
+ else
335
336
+ HeapDelete(this->xdataInfo);
337
}
338
#endif
339
this->xdataInfo = nullptr;
0 commit comments