diff --git a/mozilla/base/src/nsCRT.h b/mozilla/base/src/nsCRT.h index 88c24886783..bbd2a9bbc86 100644 --- a/mozilla/base/src/nsCRT.h +++ b/mozilla/base/src/nsCRT.h @@ -102,6 +102,8 @@ public: static PRInt32 strncasecmp(const PRUnichar* s1, const char* s2, PRInt32 aMaxLen); + // Note: uses new[] to allocate memory, so you must use delete[] to + // free the memory static PRUnichar* strdup(const PRUnichar* str); /// Compute a hashcode for a ucs2 string diff --git a/mozilla/xpcom/ds/nsCRT.h b/mozilla/xpcom/ds/nsCRT.h index 88c24886783..bbd2a9bbc86 100644 --- a/mozilla/xpcom/ds/nsCRT.h +++ b/mozilla/xpcom/ds/nsCRT.h @@ -102,6 +102,8 @@ public: static PRInt32 strncasecmp(const PRUnichar* s1, const char* s2, PRInt32 aMaxLen); + // Note: uses new[] to allocate memory, so you must use delete[] to + // free the memory static PRUnichar* strdup(const PRUnichar* str); /// Compute a hashcode for a ucs2 string