Skip to content
Snippets Groups Projects
Commit 1aec27fe authored by David Chamont's avatar David Chamont Committed by Sebastien Ponce
Browse files

Details

parent 7a8f92ab
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,7 @@ That second part can be skipped.
Simple example of a memory leak and how valgrind helps a lot with this.
Not so simple solution here. And the use of gdb with steping at the level of the destructor call is recommended. Give it as a hint to people.
The solution is that the wrong destructor is called when calling "delete hexa" because the constructor is not virtual while it should be.
### callgrind
......
......@@ -3,7 +3,7 @@
Step 1
* look at the code
* open `test.cpp`
* open `trymultiherit.cpp`
* create a `TextBox` and call `draw`
* Fix the code to call both draws by using types
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment