1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00
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
..
2016-02-25 22:59:17 +03:00
2016-09-29 15:08:00 +02:00
2015-12-08 09:53:14 +03:00
2013-11-09 21:29:46 +00:00
2014-08-30 18:45:11 +02:00
2014-10-04 00:34:13 +04:00
2013-02-11 19:11:34 +00:00
2015-12-08 09:53:14 +03:00
2014-08-26 12:19:04 +02:00
2016-08-12 12:14:10 +03:00
2016-08-30 05:13:45 +03:00
2016-08-12 12:14:10 +03:00
2016-08-12 12:14:10 +03:00
2016-08-30 11:45:05 +03:00
2016-08-30 11:45:05 +03:00
2013-06-26 11:18:27 +00:00
2014-08-30 18:45:11 +02:00
2016-09-04 13:43:09 +03:00
2014-04-20 12:40:15 +04:00
2015-12-08 09:53:14 +03:00
2014-11-17 16:43:26 +01:00
2016-02-25 22:59:17 +03:00
2016-09-29 15:08:00 +02:00
2016-01-31 18:01:58 +03:00
2016-09-29 15:08:00 +02:00
2016-09-12 22:28:11 +02:00
2016-02-09 11:08:20 +01:00
2016-01-31 18:01:58 +03:00
2013-06-26 11:18:27 +00:00
2016-09-04 13:43:09 +03:00
2016-08-30 11:45:05 +03:00
2016-02-29 16:32:29 +01:00
2016-01-31 18:01:58 +03:00