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:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-01-03 21:00:53 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-01-03 21:00:53 +0400
commit0dabf824fbcb7d343919edd88e29bd267a8734f6 (patch)
treee1f43464955962754aebca302ed6c940c698713a /source/blender/editors/sculpt_paint/paint_image_proj.c
parent56a531eb29bb9ec2e4687645bd22f832054e635f (diff)
Fix T38045: Clone stamp crashes
Issue seems to be caused by thread-unsafe IMB_freeImBuf. Now use generic BKE_image_release_ibuf to de-reference image buffer which was acquired from image datablock.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_proj.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 4b402bc1741..385d1aa57ed 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -598,7 +598,7 @@ static bool project_paint_PickColor(const ProjPaintState *ps, const float pt[2],
}
}
}
- IMB_freeImBuf(ibuf);
+ BKE_image_release_ibuf(ima, ibuf, NULL);
return 1;
}