[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59528] branches/soc-2013-depsgraph_mt/ source/blender/blenlib/intern/threads.c: Fix possible crash when blender exits before task scheduler was initialized

Sergey Sharybin sergey.vfx at gmail.com
Mon Aug 26 17:02:17 CEST 2013


Revision: 59528
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59528
Author:   nazgul
Date:     2013-08-26 15:02:17 +0000 (Mon, 26 Aug 2013)
Log Message:
-----------
Fix possible crash when blender exits before task scheduler was initialized

Modified Paths:
--------------
    branches/soc-2013-depsgraph_mt/source/blender/blenlib/intern/threads.c

Modified: branches/soc-2013-depsgraph_mt/source/blender/blenlib/intern/threads.c
===================================================================
--- branches/soc-2013-depsgraph_mt/source/blender/blenlib/intern/threads.c	2013-08-26 14:58:16 UTC (rev 59527)
+++ branches/soc-2013-depsgraph_mt/source/blender/blenlib/intern/threads.c	2013-08-26 15:02:17 UTC (rev 59528)
@@ -155,7 +155,9 @@
 
 void BLI_threadapi_exit(void)
 {
-	BLI_task_scheduler_free(task_scheduler);
+	if (task_scheduler) {
+		BLI_task_scheduler_free(task_scheduler);
+	}
 	BLI_spin_end(&_malloc_lock);
 }
 




More information about the Bf-blender-cvs mailing list