From 6b1cb6c501f04070e18c7bd323ecfe206b7bdfef Mon Sep 17 00:00:00 2001 From: "bruce%cybersight.com" Date: Sun, 25 Apr 1999 13:31:05 +0000 Subject: [PATCH] Fix for a comment. --- base/public/nsFileSpec.h | 3 ++- xpcom/io/nsFileSpec.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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".