diff --git a/src/kits/storage/PathFinder.cpp b/src/kits/storage/PathFinder.cpp index fe3b1c5567..89b9de1d62 100644 --- a/src/kits/storage/PathFinder.cpp +++ b/src/kits/storage/PathFinder.cpp @@ -6,6 +6,7 @@ #include +#include #include #include #include @@ -128,6 +129,8 @@ BPathFinder::FindPaths(const char* architecture, if (error != B_OK) return error; + MemoryDeleter pathArrayDeleter(pathArray); + // add them to BStringList for (size_t i = 0; i < pathCount; i++) { BString path(pathArray[i]);