summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_patch_manager.cc
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-12-12 06:57:38 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-12-12 06:57:38 +0000
commit30daaebaa2d90d6b0e8673143ccc3cacd7bd1753 (patch)
tree802b5cda688c025e0171fe5bb047df197e13d75f /libs/ardour/midi_patch_manager.cc
parent6c1f3655156e8a357ee30891301daa6a0ab1b980 (diff)
* fixed memory allocation bugs
* commented out a crash line in ardour_ui2.cc (added a warning message). (I thought, it may be fairly efficient to keep issues as code instead of putting them in the tracker where hardly ever one would notice the needle in the haystack) * forgot to clear two other collections on MidiPatchManager::refresh() git-svn-id: svn://localhost/ardour2/branches/3.0@4312 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_patch_manager.cc')
-rw-r--r--libs/ardour/midi_patch_manager.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/midi_patch_manager.cc b/libs/ardour/midi_patch_manager.cc
index bb57f4b10f..cb1ba771f4 100644
--- a/libs/ardour/midi_patch_manager.cc
+++ b/libs/ardour/midi_patch_manager.cc
@@ -50,6 +50,8 @@ void
MidiPatchManager::refresh()
{
_documents.clear();
+ _master_devices_by_model.clear();
+ _all_models.clear();
path path_to_patches = _session->session_directory().midi_patch_path();
@@ -97,4 +99,6 @@ MidiPatchManager::drop_session ()
{
_session = 0;
_documents.clear();
+ _master_devices_by_model.clear();
+ _all_models.clear();
}