Fix tiny memory leak.

This commit is contained in:
André Nusser 2015-10-15 15:24:46 +02:00 committed by Paul Davis
parent d460bb3475
commit bc83699e44
1 changed files with 5 additions and 5 deletions

View File

@ -5341,14 +5341,14 @@ Editor::transform_regions (const RegionSelection& rs)
return;
}
TransformDialog* td = new TransformDialog();
TransformDialog td;
td->present();
const int r = td->run();
td->hide();
td.present();
const int r = td.run();
td.hide();
if (r == Gtk::RESPONSE_OK) {
Transform transform(td->get());
Transform transform(td.get());
apply_midi_note_edit_op(transform, rs);
}
}