-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux] WinAdapter: Remove virtual dtors from IUnknown to fix vtable ABI #3793
Changes from all commits
9beaf21
794e21e
18b6edb
322b181
e0bf4dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -581,7 +581,9 @@ HRESULT DxcBasicUnsavedFile::Create( | |
HRESULT hr = newValue->Initialize(fileName, contents, contentLength); | ||
if (FAILED(hr)) | ||
{ | ||
delete newValue; | ||
CComPtr<IMalloc> pTmp(newValue->m_pMalloc); | ||
newValue->DxcBasicUnsavedFile::~DxcBasicUnsavedFile(); | ||
pTmp->Free(newValue); | ||
Comment on lines
+584
to
+586
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pow2clck what'd happen if we just call There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh that's not entirely correct: Those two types have their code located in Footnotes
|
||
return hr; | ||
} | ||
newValue->AddRef(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish that this could be disabled only where it needs to be, but it needs to be in quite a lot of places and that would probably be more annoying than its worth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd effectively have to inline-disable the warning every time a pure virtual interface is defined it seems. I guess the main point for this was because MSVC doesn't warn on this either.