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:
Diffstat (limited to 'source/blender/render/intern/zbuf.c')
-rw-r--r--source/blender/render/intern/zbuf.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/render/intern/zbuf.c b/source/blender/render/intern/zbuf.c
index 242c8a199fb..726124871ee 100644
--- a/source/blender/render/intern/zbuf.c
+++ b/source/blender/render/intern/zbuf.c
@@ -56,13 +56,8 @@ void zbuf_alloc_span(ZSpan *zspan, int rectx, int recty)
void zbuf_free_span(ZSpan *zspan)
{
if (zspan) {
- if (zspan->span1) {
- MEM_freeN(zspan->span1);
- }
- if (zspan->span2) {
- MEM_freeN(zspan->span2);
- }
- zspan->span1 = zspan->span2 = NULL;
+ MEM_SAFE_FREE(zspan->span1);
+ MEM_SAFE_FREE(zspan->span2);
}
}