mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: potential crash calling tray.popUpContextMenu() (#39313)
fix: potential crash calling tray.popUpContextMenu Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
@@ -342,7 +342,9 @@ void Tray::PopUpContextMenu(gin::Arguments* args) {
|
||||
}
|
||||
}
|
||||
}
|
||||
tray_icon_->PopUpContextMenu(pos, menu.IsEmpty() ? nullptr : menu->model());
|
||||
|
||||
tray_icon_->PopUpContextMenu(
|
||||
pos, menu.IsEmpty() ? nullptr : menu->model()->GetWeakPtr());
|
||||
}
|
||||
|
||||
void Tray::CloseContextMenu() {
|
||||
|
||||
Reference in New Issue
Block a user