Fix T39446: Blender Crashes when Camera Tracking
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 1 Apr 2014 07:14:37 +0000 (13:14 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 1 Apr 2014 07:14:37 +0000 (13:14 +0600)
commitee72cba008829c0ae1bb21f952e180d54dd12f88
tree7bef5e2f9cf64b82615af0e6aab4ba7ff0d1f60d
parente95fd792582324bd93077358e0393e78273a76d3
Fix T39446: Blender Crashes when Camera Tracking

Issue is likely caused by thread-unsafe nature of IMB_freeImBuf
which might lead to race condition in some circumstances.

Now made it thread-safe and from Sebastian's tests seems crash is
gone now, so hopefully the root of the issue is finally nailed down.
source/blender/imbuf/intern/IMB_allocimbuf.h
source/blender/imbuf/intern/allocimbuf.c
source/blender/imbuf/intern/module.c