-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removing the un-aptly named cvector_free_each_and_free as per the dis…
…cussion in #47. Especially since now that we have a proper destructor, there's basically no need for this macro (and, it really only saved one line of code)
- Loading branch information
Showing
3 changed files
with
15 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4dbe408
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not entirely sure why this is causing a heap fail
4dbe408
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it? it passes all my tests
4dbe408
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RobLoach oh wow, it is, replicated by running manually with
--leak-check=full
to valgrind, (passes locally without that flag). I'll investigate. Honestly, I kinda don't love the whole "element-destructor" thing. while it makes sense for C++, it's very un-C like4dbe408
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. is a no-op on non-null vectors. Will be fixing shortly.
4dbe408
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phew, fixed it. Honestly this has just made me dislike the destructors even more, LOL. I had forgotten how strange the semantics of it has to be to in order to work without templates.