Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Fix memleak in RenderLocationIndicatorLayer - #16404

Merged
galinelle merged 1 commit into
masterfrom
galinelle_locationIndicatorPointer
Apr 17, 2020
Merged

galinelle merged 1 commit into
masterfrom
galinelle_locationIndicatorPointer

Conversation

@galinelle

@galinelle galinelle commented Apr 16, 2020 •

Copy link
Copy Markdown
Contributor

Launch Checklist

  • briefly describe the changes in this PR


bool contextDestroyed = false;
RenderLocationIndicatorImpl *renderImpl = nullptr;
std::unique_ptr<RenderLocationIndicatorImpl> renderImpl;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

how this RenderLocationIndicatorImpl instance was managed before? was it leaking?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it was probably leaking, yes..

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Curious how the CI did not detected this. It should have been visible on the Valgrind bot (but at the moment it is not failing). Also clang-tidy has a check for not using new like this that is currently disabled.

@galinelle
galinelle requested a review from LukasPaczos April 16, 2020 10:39

@pozdnyakov pozdnyakov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you rephrase the PR title to smth like "Fix memory leak at.."?

@galinelle galinelle changed the title Use unique_ptr for RenderLocationIndicatorImpl Fix memleak in RenderLocationIndicatorLayer Apr 16, 2020

@ivovandongen ivovandongen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@galinelle
galinelle force-pushed the galinelle_locationIndicatorPointer branch from 9184507 to 13ad403 Compare April 17, 2020 12:23
@galinelle
galinelle merged commit cbb3a56 into master Apr 17, 2020
@galinelle
galinelle deleted the galinelle_locationIndicatorPointer branch April 17, 2020 13:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants