Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge memory leaking in Resample #83

Open
easterngarden opened this issue Apr 16, 2020 · 1 comment
Open

Huge memory leaking in Resample #83

easterngarden opened this issue Apr 16, 2020 · 1 comment

Comments

@easterngarden
Copy link

When I try to use tri::Resampler<CMeshO, CMeshO>::Resample to create offset mesh and found there is huge memory leaking. The fix is pretty simple. Just modified codes in resampler.h and the memory leaking is gone.
~Walker()
{
}
to:
~Walker()
{
delete _x_cs;
delete _y_cs;
delete _z_cs;
delete _x_ns;
delete _z_ns;
delete _v_cs;
delete _v_ns;
}

@easterngarden
Copy link
Author

~Walker()
{
	delete [] _x_cs;
	delete [] _y_cs;
	delete [] _z_cs;
	delete [] _x_ns;
	delete [] _z_ns;
	delete [] _v_cs;
	delete [] _v_ns;
}

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

No branches or pull requests

1 participant