Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Feature cleanup memory leaks #390

Closed
wants to merge 17 commits into from
Closed

Conversation

Nielsbishere
Copy link
Contributor

Copy link
Contributor

@VZout VZout left a comment

Choose a reason for hiding this comment

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

looks good but please revert the changes to the frame graph. That is not a good solution.we should use a base class but right now the easiest solution would be to change the stored data type from void* to shared/unique_pointer which would call the destructor I believe if you initialize it from the correct type. still return Object* instead of shared to keep the changes to a minimum.

{
delete data;
free(data);
Copy link
Contributor

Choose a reason for hiding this comment

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

prefer delete over free.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay maybe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll change it to std::shared_ptrlike suggested

@VZout
Copy link
Contributor

VZout commented Jun 20, 2019

not mergable

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.

2 participants