fix: crash in gin::wrappable::secondweakcallback (#45378)
fix: crash in gin::wrappable::secondweakcallback (#45368)
This commit is contained in:
parent
e99328a45e
commit
ef1ad85082
19 changed files with 230 additions and 3 deletions
|
@ -27,11 +27,14 @@ CleanedUpAtExit::~CleanedUpAtExit() {
|
|||
std::erase(GetDoomed(), this);
|
||||
}
|
||||
|
||||
void CleanedUpAtExit::WillBeDestroyed() {}
|
||||
|
||||
// static
|
||||
void CleanedUpAtExit::DoCleanup() {
|
||||
auto& doomed = GetDoomed();
|
||||
while (!doomed.empty()) {
|
||||
CleanedUpAtExit* next = doomed.back();
|
||||
next->WillBeDestroyed();
|
||||
delete next;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue