From 68d6bb0c119141b0c8637d0b1b3c8b73c7026933 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 27 Nov 2012 18:37:52 +0000 Subject: [PATCH] revert prev change to reset git-svn-id: http://skia.googlecode.com/svn/trunk@6571 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkRefCnt.h | 6 ++---- 1 file 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) {