make valgrind output a bit more readable.

This commit is contained in:
Robin Gareus 2014-09-11 02:37:42 +02:00
parent bfcd96533c
commit 5dd5bb7830
2 changed files with 17 additions and 0 deletions

View file

@ -569,6 +569,15 @@ ARDOUR_UI::~ARDOUR_UI ()
}
stop_video_server();
if (getenv ("ARDOUR_RUNNING_UNDER_VALGRIND")) {
// don't bother at 'real' exit. the OS cleans up for us.
delete big_clock;
delete primary_clock;
delete secondary_clock;
delete _process_thread;
delete gui_object_state;
}
}
void

View file

@ -184,6 +184,14 @@ PluginManager::PluginManager ()
PluginManager::~PluginManager()
{
if (getenv ("ARDOUR_RUNNING_UNDER_VALGRIND")) {
// don't bother, just exit quickly.
delete _windows_vst_plugin_info;
delete _lxvst_plugin_info;
delete _ladspa_plugin_info;
delete _lv2_plugin_info;
delete _au_plugin_info;
}
}
void