projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5f7d77
)
fix funky formatting in SkNVRefCnt
author
mtklein
<mtklein@chromium.org>
Mon, 7 Dec 2015 21:37:00 +0000
(13:37 -0800)
committer
Commit bot
<commit-bot@chromium.org>
Mon, 7 Dec 2015 21:37:00 +0000
(13:37 -0800)
BUG=skia:
TBR=reed@google.com
No API change.
Review URL: https://codereview.chromium.org/
1505023002
include/core/SkRefCnt.h
patch
|
blob
|
history
diff --git
a/include/core/SkRefCnt.h
b/include/core/SkRefCnt.h
index
0e8d857
..
9d1e5f1
100644
(file)
--- a/
include/core/SkRefCnt.h
+++ b/
include/core/SkRefCnt.h
@@
-218,7
+218,7
@@
public:
void unref() const {
if (1 == sk_atomic_fetch_add(&fRefCnt, -1, sk_memory_order_acq_rel)) {
SkDEBUGCODE(fRefCnt = 1;) // restore the 1 for our destructor's assert
-
delete (const Derived*)this;
+ delete (const Derived*)this;
}
}
void deref() const { this->unref(); }