Index: src/core/SkPath.cpp |
=================================================================== |
--- src/core/SkPath.cpp (revision 9750) |
+++ src/core/SkPath.cpp (working copy) |
@@ -19,11 +19,10 @@ |
#if SK_DEBUG_PATH_REF |
-SkPath::PathRefDebugRef::PathRefDebugRef(SkPath* owner) : fOwner(owner) {} |
- |
SkPath::PathRefDebugRef::PathRefDebugRef(SkPathRef* pr, SkPath* owner) |
-: fPathRef(pr) |
-, fOwner(owner) { |
+ : fPathRef(pr) |
+ , fOwner(owner) |
+{ |
pr->addOwner(owner); |
} |
@@ -244,7 +243,7 @@ |
SkPath::SkPath(const SkPath& that) |
#if SK_DEBUG_PATH_REF |
- : fPathRef(this) |
+ : fPathRef(SkRef(that.fPathRef.get()), this) |
#else |
: fPathRef(SkRef(that.fPathRef.get())) |
#endif |