Fix T61487: quick favorites crash outside of open preferences window

This commit is contained in:
2019-02-13 11:02:47 +01:00
parent 539cbf639f
commit 57f0b175d7
2 changed files with 11 additions and 2 deletions

View File

@@ -710,7 +710,9 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but)
item_found = true;
}
}
MEM_freeN(um_array);
if (um_array) {
MEM_freeN(um_array);
}
if (!item_found) {
but2 = uiDefIconTextBut(