diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-08-18 14:04:21 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-08-18 15:10:55 +1000 |
commit | 36e4c11a2ac8e1a2310d948b6f039d28be4cf521 (patch) | |
tree | 1c7ec787a5766217c0cf39f41a2ad3b79d4c4520 /libs/ardour/test | |
parent | 1d05b5d25de1dad9ca6474a4b714d940d43206c0 (diff) |
Add utility function to get windows packaging directory to avoid memory leaks
There were a few other small leaks in pbd and evoral test code but I didn't
bother changing them. Perhaps this function would be better off in PBD:: so it
can be used everywhere.
Diffstat (limited to 'libs/ardour/test')
-rw-r--r-- | libs/ardour/test/test_util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/test/test_util.cc b/libs/ardour/test/test_util.cc index 3e9566c0e4..f717290ce9 100644 --- a/libs/ardour/test/test_util.cc +++ b/libs/ardour/test/test_util.cc @@ -27,6 +27,7 @@ #include "ardour/session.h" #include "ardour/audioengine.h" +#include "ardour/filesystem_paths.h" #include "test_util.h" @@ -133,7 +134,7 @@ PBD::Searchpath test_search_path () { #ifdef PLATFORM_WINDOWS - std::string wsp(g_win32_get_package_installation_directory_of_module(NULL)); + std::string wsp(windows_package_directory_path()); return Glib::build_filename (wsp, "ardour_testdata"); #else return Glib::getenv("ARDOUR_TEST_PATH"); |