diff --git a/base/public/nsFileSpec.h b/base/public/nsFileSpec.h index f2449cc116d..6e09335d07d 100644 --- a/base/public/nsFileSpec.h +++ b/base/public/nsFileSpec.h @@ -115,6 +115,7 @@ #include "nscore.h" #include "nsError.h" #include "nsString.h" +#include "nsCRT.h" //======================================================================================== // Compiler-specific macros, as needed @@ -383,7 +384,7 @@ class NS_BASE nsFileSpec // Queries and path algebra. These do not modify the disk. //-------------------------------------------------- - char* GetLeafName() const; // Allocated. Use delete []. + char* GetLeafName() const; // Allocated. Use nsCRT::free(). void SetLeafName(const char* inLeafName); // inLeafName can be a relative path, so this allows // one kind of concatenation of "paths". diff --git a/xpcom/io/nsFileSpec.h b/xpcom/io/nsFileSpec.h index f2449cc116d..6e09335d07d 100644 --- a/xpcom/io/nsFileSpec.h +++ b/xpcom/io/nsFileSpec.h @@ -115,6 +115,7 @@ #include "nscore.h" #include "nsError.h" #include "nsString.h" +#include "nsCRT.h" //======================================================================================== // Compiler-specific macros, as needed @@ -383,7 +384,7 @@ class NS_BASE nsFileSpec // Queries and path algebra. These do not modify the disk. //-------------------------------------------------- - char* GetLeafName() const; // Allocated. Use delete []. + char* GetLeafName() const; // Allocated. Use nsCRT::free(). void SetLeafName(const char* inLeafName); // inLeafName can be a relative path, so this allows // one kind of concatenation of "paths".