diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-27 18:37:52 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-27 18:37:52 +0000 |
commit | 68d6bb0c119141b0c8637d0b1b3c8b73c7026933 (patch) | |
tree | 4689332f7784a6bae426aecf7192666435190598 | |
parent | fa1d4ea044161af2c70b01fc9d527d6a89c03ef9 (diff) |
revert prev change to reset
git-svn-id: http://skia.googlecode.com/svn/trunk@6571 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | include/core/SkRefCnt.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index 2d183cd844..3a0f8be383 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -155,10 +155,8 @@ public: T* get() const { return fObj; } void reset(T* obj) { - if (obj != fObj) { - SkSafeUnref(fObj); - fObj = obj; - } + SkSafeUnref(fObj); + fObj = obj; } void swap(SkAutoTUnref* other) { |