diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-23 07:09:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-23 07:09:13 +0300 |
commit | 3f6f89a06baeb12b64467c8e89d25295a62ed6b2 (patch) | |
tree | 4eacddf9e0698d3992c1e220fbc9227cf4ce0bbf /source/blender/editors/space_text | |
parent | 3f89322f08f3dc3059161af7fccd9216055c6898 (diff) |
Cleanup: move text.c comments to the struct/flag declarations
Also update/correct some of the comments.
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 670804d039e..e9e675ae226 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -543,10 +543,7 @@ static int text_make_internal_exec(bContext *C, wmOperator *UNUSED(op)) text->flags |= TXT_ISMEM | TXT_ISDIRTY; - if (text->filepath) { - MEM_freeN(text->filepath); - text->filepath = NULL; - } + MEM_SAFE_FREE(text->filepath); text_update_cursor_moved(C); WM_event_add_notifier(C, NC_TEXT | NA_EDITED, text); |