Fix alloc-dealloc-mismatch (malloc vs operator delete)
This commit is contained in:
parent
168b67bd17
commit
7e121f4e13
@ -442,7 +442,7 @@ ARDOUR_UI::load_session_stage_two (const std::string& path, const std::string& s
|
|||||||
|
|
||||||
(void) msg.run ();
|
(void) msg.run ();
|
||||||
msg.hide ();
|
msg.hide ();
|
||||||
delete escaped_error_txt;
|
g_free (escaped_error_txt);
|
||||||
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -473,7 +473,7 @@ ARDOUR_UI::load_session_stage_two (const std::string& path, const std::string& s
|
|||||||
|
|
||||||
(void) msg.run ();
|
(void) msg.run ();
|
||||||
msg.hide ();
|
msg.hide ();
|
||||||
delete escaped_error_txt;
|
g_free (escaped_error_txt);
|
||||||
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -501,7 +501,7 @@ ARDOUR_UI::load_session_stage_two (const std::string& path, const std::string& s
|
|||||||
|
|
||||||
(void) msg.run ();
|
(void) msg.run ();
|
||||||
msg.hide ();
|
msg.hide ();
|
||||||
delete escaped_error_txt;
|
g_free (escaped_error_txt);
|
||||||
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -700,7 +700,7 @@ ARDOUR_UI::build_session_stage_two (std::string const& path, std::string const&
|
|||||||
msg.set_title (_("Loading Error"));
|
msg.set_title (_("Loading Error"));
|
||||||
msg.set_position (Gtk::WIN_POS_CENTER);
|
msg.set_position (Gtk::WIN_POS_CENTER);
|
||||||
msg.run ();
|
msg.run ();
|
||||||
delete escaped_error_txt;
|
g_free (escaped_error_txt);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
catch (Glib::Error const& e) {
|
catch (Glib::Error const& e) {
|
||||||
@ -724,7 +724,7 @@ ARDOUR_UI::build_session_stage_two (std::string const& path, std::string const&
|
|||||||
msg.set_title (_("Loading Error"));
|
msg.set_title (_("Loading Error"));
|
||||||
msg.set_position (Gtk::WIN_POS_CENTER);
|
msg.set_position (Gtk::WIN_POS_CENTER);
|
||||||
msg.run ();
|
msg.run ();
|
||||||
delete escaped_error_txt;
|
g_free (escaped_error_txt);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
@ -745,7 +745,7 @@ ARDOUR_UI::build_session_stage_two (std::string const& path, std::string const&
|
|||||||
msg.set_title (_("Loading Error"));
|
msg.set_title (_("Loading Error"));
|
||||||
msg.set_position (Gtk::WIN_POS_CENTER);
|
msg.set_position (Gtk::WIN_POS_CENTER);
|
||||||
msg.run ();
|
msg.run ();
|
||||||
delete escaped_error_txt;
|
g_free (escaped_error_txt);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user