diff options
Diffstat (limited to 'libs/hwui/DisplayList.cpp')
-rw-r--r-- | libs/hwui/DisplayList.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/DisplayList.cpp b/libs/hwui/DisplayList.cpp index 4743f58dddb7..4944fe8714ca 100644 --- a/libs/hwui/DisplayList.cpp +++ b/libs/hwui/DisplayList.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#include <SkCanvas.h> + #include "Debug.h" #include "DisplayList.h" #include "DisplayListOp.h" @@ -121,9 +123,7 @@ void DisplayList::clearResources() { } for (size_t i = 0; i < mPaths.size(); i++) { - SkPath* path = mPaths.itemAt(i); - caches.pathCache.remove(path); - delete path; + delete mPaths.itemAt(i); } for (size_t i = 0; i < mMatrices.size(); i++) { |