Skip to content

Creating Custom Matrices and Vectors from Example 25 Code Results in Memory Leaks #4298

Answered by psocratis
cyasing asked this question in Q&A
Discussion options

You must be logged in to vote

@cyasing,

The issue is that you are trying to delete the integrator. You shouldn't do this because the ownership of the integrator is passed to the bilinearform, i.e, the bilinearform will delete it.

It doesn't matter where you place it. It's independent of the rest of the code.

Best,

Socratis

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@cyasing
Comment options

Comment options

You must be logged in to vote
5 replies
@cyasing
Comment options

@psocratis
Comment options

@cyasing
Comment options

@psocratis
Comment options

@cyasing
Comment options

Answer selected by cyasing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants