projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba647e
)
Don't lock user_data set during destruction if empty
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 30 Jul 2012 14:06:42 +0000
(10:06 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 30 Jul 2012 14:06:42 +0000
(10:06 -0400)
src/hb-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-private.hh
b/src/hb-private.hh
index
ea3254c
..
2f85025
100644
(file)
--- a/
src/hb-private.hh
+++ b/
src/hb-private.hh
@@
-442,6
+442,11
@@
struct hb_lockable_set_t
inline void finish (lock_t &l)
{
+ if (!items.len) {
+ /* No need for locking. */
+ items.finish ();
+ return;
+ }
l.lock ();
while (items.len) {
item_t old = items[items.len - 1];