temporary fix to get unix building again... Get rid of the constness before calling PR_Free(...)
git-svn-id: svn://10.0.0.236/trunk@12267 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -159,7 +159,7 @@ nsNetlibService::nsNetlibService()
|
||||
XP_AppLanguage,
|
||||
XP_AppPlatform);
|
||||
if (XP_AppVersion)
|
||||
PR_Free(XP_AppVersion);
|
||||
PR_Free((char *)XP_AppVersion);
|
||||
XP_AppVersion = PL_strdup(buf);
|
||||
}
|
||||
|
||||
@@ -661,7 +661,7 @@ nsNetlibService::SetCustomUserAgent(nsString aCustom)
|
||||
newAppVersion.Insert(aCustom, inIdx + 1);
|
||||
}
|
||||
|
||||
PR_Free(XP_AppVersion);
|
||||
PR_Free((char *)XP_AppVersion);
|
||||
XP_AppVersion = newAppVersion.ToNewCString();
|
||||
return NS_OK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user