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/blenlib/intern/listbase.c')
-rw-r--r--source/blender/blenlib/intern/listbase.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/listbase.c b/source/blender/blenlib/intern/listbase.c
index 17e7bf8a99b..76ad687de3c 100644
--- a/source/blender/blenlib/intern/listbase.c
+++ b/source/blender/blenlib/intern/listbase.c
@@ -313,9 +313,8 @@ void BLI_freelist(ListBase *listbase)
free(link);
link = next;
}
-
- listbase->first = NULL;
- listbase->last = NULL;
+
+ BLI_listbase_clear(listbase);
}
/**
@@ -331,9 +330,8 @@ void BLI_freelistN(ListBase *listbase)
MEM_freeN(link);
link = next;
}
-
- listbase->first = NULL;
- listbase->last = NULL;
+
+ BLI_listbase_clear(listbase);
}