summaryrefslogtreecommitdiff
path: root/libs/ardour/location_importer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/location_importer.cc')
-rw-r--r--libs/ardour/location_importer.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/ardour/location_importer.cc b/libs/ardour/location_importer.cc
index f321c1d2cb..58a6e72f16 100644
--- a/libs/ardour/location_importer.cc
+++ b/libs/ardour/location_importer.cc
@@ -95,7 +95,7 @@ LocationImporter::LocationImporter (XMLTree const & source, Session & session, L
LocationImporter::~LocationImporter ()
{
- if (!queued() && location) {
+ if (!queued()) {
delete location;
}
}
@@ -178,10 +178,8 @@ LocationImporter::_prepare_move ()
void
LocationImporter::_cancel_move ()
{
- if (location) {
- delete location;
- location = 0;
- }
+ delete location;
+ location = 0;
}
void