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>2009-07-19 08:50:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-07-19 08:50:10 +0400
commit7411a86a41c654ff0ea6769a8130707a6baadac4 (patch)
treec19d0169d75a25be449587c6e15a526d2e20e291 /source/blender/blenkernel/intern/report.c
parentaad1f809dd1a494cd5e36f585e5029195c712942 (diff)
- was freeing reports on freed listbases
- free reports in a single loop. - extrude was using a NULL scene, crashed when used as a macro
Diffstat (limited to 'source/blender/blenkernel/intern/report.c')
-rw-r--r--source/blender/blenkernel/intern/report.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/report.c b/source/blender/blenkernel/intern/report.c
index 3e3dd4b0af0..391adfb762a 100644
--- a/source/blender/blenkernel/intern/report.c
+++ b/source/blender/blenkernel/intern/report.c
@@ -73,15 +73,21 @@ void BKE_reports_init(ReportList *reports, int flag)
void BKE_reports_clear(ReportList *reports)
{
- Report *report;
+ Report *report, *report_next;
if(!reports)
return;
- for(report=reports->list.first; report; report=report->next)
+ report= reports->list.first;
+
+ while (report) {
+ report_next= report->next;
MEM_freeN(report->message);
+ MEM_freeN(report);
+ report= report_next;
+ }
- BLI_freelistN(&reports->list);
+ reports->list.first= reports->list.last= NULL;
}
void BKE_report(ReportList *reports, ReportType type, const char *message)