Skip to content

Commit 37a54f5

Browse files
authored
Merge pull request #22 from tyBrave/capi
fix: OH_Drawing_CanvasDestroy method exception
2 parents 247de53 + cacba34 commit 37a54f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harmony/clipPath/src/main/cpp/ClipPathViewNoneNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ ClipPathViewNoneNode::~ClipPathViewNoneNode() {
7373
OH_Drawing_MatrixDestroy(mMatrix);
7474
OH_Drawing_PenDestroy(mPaint);
7575
OH_Drawing_PenDestroy(mPaintStroke);
76-
OH_Drawing_CanvasDestroy(canvas);
7776
delete canvasCallback_;
7877
delete mProps;
7978
canvasCallback_ = nullptr;
8079
mProps = nullptr;
80+
canvas =nullptr;
8181
}
8282

8383
void ClipPathViewNoneNode::insertChild(ArkUINode &child, std::size_t index) {

0 commit comments

Comments
 (0)