diff --git a/modules/oji/src/nsJVMPluginTagInfo.cpp b/modules/oji/src/nsJVMPluginTagInfo.cpp index f88abbaf4f20..65371b2c7d55 100644 --- a/modules/oji/src/nsJVMPluginTagInfo.cpp +++ b/modules/oji/src/nsJVMPluginTagInfo.cpp @@ -146,7 +146,7 @@ nsJVMPluginTagInfo::GetCodeBase(const char* *result) } PA_UNLOCK(docBase); - nsCRT::free(docBase); + nsCRT::free((char *)docBase); *result = fSimulatedCodebase; return NS_OK; }