diff --git a/source/blender/editors/interface/interface_layout.cc b/source/blender/editors/interface/interface_layout.cc index 87c98d418dd..750be6fc954 100644 --- a/source/blender/editors/interface/interface_layout.cc +++ b/source/blender/editors/interface/interface_layout.cc @@ -6039,7 +6039,7 @@ void uiLayoutSetTooltipFunc(uiLayout *layout, } } - if (!arg_used) { + if (free_arg != nullptr && !arg_used) { /* Free the original copy of arg in case the layout is empty. */ free_arg(arg); }