diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 3b3df7557b8..0c540da63d4 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -4130,7 +4130,8 @@ nsWebShell::OnStatus(nsIChannel* channel, nsISupports* ctxt, #ifndef BUG_16273_FIXED //free the message- - CRTFREEIF((PRUnichar*)aMsg); + PRUnichar* temp = (PRUnichar*) aMsg; + CRTFREEIF(temp); #endif return rv; } diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 3b3df7557b8..0c540da63d4 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -4130,7 +4130,8 @@ nsWebShell::OnStatus(nsIChannel* channel, nsISupports* ctxt, #ifndef BUG_16273_FIXED //free the message- - CRTFREEIF((PRUnichar*)aMsg); + PRUnichar* temp = (PRUnichar*) aMsg; + CRTFREEIF(temp); #endif return rv; }