зеркало из https://github.com/mozilla/pjs.git
fixes bug 134546 "Memory leak in nsScriptSecurityManager::GetBaseURIScheme()"
patch=pj@ludd.luth.se, r=mstoltz, sr=darin, a=rjesup@wgate.com
This commit is contained in:
Родитель
995b6f5d6f
Коммит
0de3da6d32
|
@ -869,7 +869,6 @@ nsScriptSecurityManager::GetBaseURIScheme(nsIURI* aURI, char** aScheme)
|
|||
//-- if uri is an about uri, distinguish 'safe' and 'unsafe' about URIs
|
||||
static const char aboutScheme[] = "about";
|
||||
if(nsCRT::strcasecmp(scheme.get(), aboutScheme) == 0)
|
||||
*aScheme = nsCRT::strdup(scheme.get());
|
||||
{
|
||||
nsCAutoString spec;
|
||||
if(NS_FAILED(uri->GetAsciiSpec(spec)))
|
||||
|
|
Загрузка…
Ссылка в новой задаче