aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/divecartesianaxis.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-05-18 23:09:11 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-19 07:48:28 -0700
commit555f2f9565c28abcbaf2fab018860b3d4cc1d434 (patch)
tree10e537daa5aa3d52b4323031062955e6860618a2 /profile-widget/divecartesianaxis.cpp
parentffdaba6c84431e25657de1fd3a7d67336c48aa7b (diff)
downloadsubsurface-555f2f9565c28abcbaf2fab018860b3d4cc1d434.tar.gz
Profile: Fix leak in animation
If animDelete() was called with prefs.animation_speed == 0, the object would not be marked for deletion, as opposed to calling with prefs.animation_speed != 0. This would leak the objects. Therefore delete the objects if called with prefs.animation_speed == 0. The caller doesn't keep a reference to the objects. Therefore, a plain delete is fine, as opposed to a deleteLater(). While touching this function, use the function-pointer version of connect(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/divecartesianaxis.cpp')
0 files changed, 0 insertions, 0 deletions