Avoid accesing to a deleted FrameTag after FrameTagPopup

This commit is contained in:
David Capello 2015-03-10 19:28:45 -03:00
parent a504ba3783
commit 311bb21bd4

View File

@ -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) {