Fix memory leak in edit-font toggle style

FONT_OT_style_toggle returned `true` instead of the canceled flag
causing it to run as a modal operator which leak memory from it's
reports when called from Python.
This commit is contained in:
Campbell Barton
2024-10-31 18:45:42 +11:00
committed by Philipp Oeser
parent 47631908de
commit e9f89f9af5
+1 -1
View File
@@ -1003,7 +1003,7 @@ static int toggle_style_exec(bContext *C, wmOperator *op)
clear = (cu->curinfo.flag & style) == 0;
return set_style(C, style, clear);
}
return true;
return OPERATOR_CANCELLED;
}
void FONT_OT_style_toggle(wmOperatorType *ot)