Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-06-23 07:09:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-06-23 07:09:13 +0300
commit3f6f89a06baeb12b64467c8e89d25295a62ed6b2 (patch)
tree4eacddf9e0698d3992c1e220fbc9227cf4ce0bbf /source/blender/editors/space_text
parent3f89322f08f3dc3059161af7fccd9216055c6898 (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.c5
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);