K. \"pestophagous\" Heller e4c7c6e8eb Prevent gaschange tank icons from using garbage coords.
Tank icons were shown at incorrect spots on the profile
when the DiveEventItem object held a pointer to a struct
event even after the struct event at that address had
been freed.  When internalEvent is a pointer to freed
memory, internalEvent->time.seconds could have all kinds
of crazy values, which get used in member function
DiveEventItem::recalculatePos to place the tank at bad
x coordinates.

The DiveEventItem(s) no longer store a pointer to memory
that they do not own.  This way, no matter how the path of
execution arrives into slot recalculatePos, we never need
fear that the DiveEventItem will dereference a garbage
pointer to a struct event.

Fixes #968

Signed-off-by: K. Heller <pestophagous@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-06 09:37:07 -08:00
..
2015-09-03 07:40:14 -07:00
2014-06-26 15:47:02 -07:00
2014-02-08 08:00:27 -08:00
2014-10-14 20:33:46 +02:00
2015-07-31 11:01:57 -07:00
2015-06-03 21:26:31 -07:00
2015-10-02 17:30:21 -04:00
2015-10-06 21:15:51 +01:00
2015-09-16 21:16:58 -07:00
2014-10-18 15:16:15 -07:00
2014-10-18 15:16:15 -07:00
2015-10-07 07:56:44 +01:00
2014-12-01 14:19:03 -08:00
2015-08-15 05:01:33 -07:00
2014-10-18 15:16:15 -07:00
2014-11-17 06:02:21 +00:00
2015-08-31 15:12:18 -07:00
2015-02-23 09:31:08 -08:00
2015-02-23 09:31:08 -08:00