summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/filesystem_paths.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-08-18 14:04:21 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-08-18 15:10:55 +1000
commit36e4c11a2ac8e1a2310d948b6f039d28be4cf521 (patch)
tree1c7ec787a5766217c0cf39f41a2ad3b79d4c4520 /libs/ardour/ardour/filesystem_paths.h
parent1d05b5d25de1dad9ca6474a4b714d940d43206c0 (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/ardour/filesystem_paths.h')
-rw-r--r--libs/ardour/ardour/filesystem_paths.h7
1 files changed, 7 insertions, 0 deletions
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 <install_dir>/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