Browse Source

Delete ModelBox tooltips in a deferred way to avoid a use-after-free.

tags/v1.1.6
Andrew Belt 5 years ago
parent
commit
f8ef68c4f1
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/app/ModuleBrowser.cpp

+ 1
- 2
src/app/ModuleBrowser.cpp View File

@@ -219,8 +219,7 @@ struct ModelBox : widget::OpaqueWidget {

void setTooltip(ui::Tooltip* tooltip) {
if (this->tooltip) {
this->tooltip->parent->removeChild(this->tooltip);
delete this->tooltip;
this->tooltip->requestDelete();
this->tooltip = NULL;
}



Loading…
Cancel
Save