mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Avoid accesing to a deleted FrameTag after FrameTagPopup
This commit is contained in:
parent
a504ba3783
commit
311bb21bd4
@ -601,6 +601,12 @@ bool Timeline::onProcessMessage(Message* msg)
|
||||
Params params;
|
||||
params.set("id", base::convert_to<std::string>(m_clk.frameTag->id()).c_str());
|
||||
|
||||
// As the m_clk.frameTag can be deleted with
|
||||
// RemoveFrameTag command, we've to clean all references
|
||||
// to it from Hit() structures.
|
||||
cleanClk();
|
||||
m_hot = m_clk;
|
||||
|
||||
if (mouseMsg->right()) {
|
||||
Menu* popup_menu = AppMenus::instance()->getFrameTagPopupMenu();
|
||||
if (popup_menu) {
|
||||
|
Loading…
Reference in New Issue
Block a user