1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/client/widgets
Vadim Markovtsev 2c1dddde33 Fix memory problems with BonusList
Bonus * -> std::shared_ptr<Bonus>

This cures the following problems:

1) Memory corruption at exit. Some Bonus-es were deleted twice (mods?).
2) Memory leaks. Some Bonuses were not deleted.
3) Reduce the number of "Orphaned child" messages.

Valgrind reports 0 leaked memory now and no invalid reads/writes.
2016-09-29 15:08:00 +02:00
..
AdventureMapClasses.cpp SDL1 wipe, part 2. Untested. 2015-06-21 01:59:31 +03:00
AdventureMapClasses.h Add "override" to virtual overriden methods 2015-10-13 21:05:36 +03:00
Buttons.cpp widgets: Cleanup musicButton specific hacks 2015-08-22 12:40:14 -04:00
Buttons.h Add "override" to virtual overriden methods 2015-10-13 21:05:36 +03:00
CArtifactHolder.cpp CArtifactsOfHero: use shared_ptr for SCommonPart 2016-08-30 07:05:31 +03:00
CArtifactHolder.h CArtifactsOfHero: use shared_ptr for SCommonPart 2016-08-30 07:05:31 +03:00
CComponent.cpp Fix 2139 captured spell scroll descriptions 2016-01-25 08:49:26 +03:00
CComponent.h Add "override" to virtual overriden methods 2015-10-13 21:05:36 +03:00
CGarrisonInt.cpp CArtifactsOfHero: use shared_ptr for SCommonPart 2016-08-30 07:05:31 +03:00
CGarrisonInt.h Add "override" to virtual overriden methods 2015-10-13 21:05:36 +03:00
Images.cpp Remove some useless includes found by cppclean 2016-08-26 04:42:16 +03:00
Images.h Add "override" to virtual overriden methods 2015-10-13 21:05:36 +03:00
MiscWidgets.cpp Fix memory problems with BonusList 2016-09-29 15:08:00 +02:00
MiscWidgets.h cleanup 2016-08-30 05:13:45 +03:00
ObjectLists.cpp
ObjectLists.h
TextControls.cpp Fix indentation of logging code and around it 2016-03-12 04:46:21 +03:00
TextControls.h Add "override" to virtual overriden methods 2015-10-13 21:05:36 +03:00