Skip to content

Conversation

@bulloo
Copy link
Collaborator

@bulloo bulloo commented Nov 1, 2025

Proposed Changes

Testing

Test: Describe how you tested your changes. Note that this line (with Test:) is required, your PR will not build without it!

Issues Fixed

Fixes: [Optional] The bug on https://issuetracker.google.com being fixed

Google CLA

You need to sign the Google Contributor’s License Agreement at https://cla.developers.google.com/.
This is needed since we synchronise most of the code with Google’s AOSP repository. Signing this agreement allows us to synchronise code from your Pull Requests as well.

if (it != props->clipPool.end()) {
auto *willBeDeleteClipRenderNode = it->second;
props->clipPool.erase(itemHash);
rootRenderNode.removeChild(willBeDeleteClipRenderNode);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里应该不是rootRenderNode去removeChild吧,应该是由willBeDeleteClipRenderNode的parent去removeChild。

if (iterator != props->renderNodePool.end()) {
auto *willBeDeleteRenderNode = iterator->second;
props->renderNodePool.erase(iterator);
rootRenderNode.removeChild(willBeDeleteRenderNode);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处也是一样,应该由willBeDeleteRenderNode的parent去removeChild

@sebuntin sebuntin merged commit 6fe1a62 into sebuntin:ohos-compose-1.6.1-20250919 Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants