From 36e4c11a2ac8e1a2310d948b6f039d28be4cf521 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 18 Aug 2015 14:04:21 +1000 Subject: 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. --- libs/ardour/ardour/filesystem_paths.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/filesystem_paths.h b/libs/ardour/ardour/filesystem_paths.h index afa66453eb..cc1a21c45e 100644 --- a/libs/ardour/ardour/filesystem_paths.h +++ b/libs/ardour/ardour/filesystem_paths.h @@ -78,6 +78,13 @@ namespace ARDOUR { * @return our 'Windows' search path ( corresponds to /share/ardour3 ) */ LIBARDOUR_API PBD::Searchpath windows_search_path (); + + /** + * @return Convenience function that calls + * g_win32_get_package_installation_directory_of_module but returns a + * std::string + */ + LIBARDOUR_API std::string windows_package_directory_path (); #endif } // namespace ARDOUR -- cgit v1.2.3