diff options
author | Carl Hetherington <carl@carlh.net> | 2008-12-18 19:31:00 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2008-12-18 19:31:00 +0000 |
commit | 4e1f451520975868659f4c00d00883f5f1cd5805 (patch) | |
tree | 7a8a51d65d70932e8151bbbeafc8eae49e60cd65 /gtk2_ardour/imageframe_time_axis.cc | |
parent | be655cc5af1b059de77bb4215c13f14013fc73da (diff) |
Remove unnecessary 0 checks before delete; see http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.8 Apologies for the big commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@4332 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/imageframe_time_axis.cc')
-rw-r--r-- | gtk2_ardour/imageframe_time_axis.cc | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/gtk2_ardour/imageframe_time_axis.cc b/gtk2_ardour/imageframe_time_axis.cc index f3630e7152..735855421f 100644 --- a/gtk2_ardour/imageframe_time_axis.cc +++ b/gtk2_ardour/imageframe_time_axis.cc @@ -107,24 +107,15 @@ ImageFrameTimeAxis::~ImageFrameTimeAxis () iter = next ; } - if(image_action_menu) - { - delete image_action_menu ; - image_action_menu = 0 ; - } + delete image_action_menu ; + image_action_menu = 0 ; - if (selection_group) - { - delete selection_group; - selection_group = 0 ; - } + delete selection_group; + selection_group = 0 ; // Destroy our Axis View helper - if(view) - { - delete view ; - view = 0 ; - } + delete view ; + view = 0 ; } //---------------------------------------------------------------------------------------// |