Skip to content
Snippets Groups Projects
Commit 1806c24e authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Merge branch 'hsf-2021-01-notes' into 'master'

Details

See merge request !16
parents 7a8f92ab 1aec27fe
No related branches found
No related tags found
1 merge request!16Details
......@@ -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