Fix T61487: quick favorites crash outside of open preferences window
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user