Fix for a memory leak. a=waterson,r=dougt

git-svn-id: svn://10.0.0.236/trunk@61455 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bruce%cybersight.com 2000-02-22 23:47:25 +00:00
parent 428940b12e
commit 80a3b967a2
2 changed files with 2 additions and 8 deletions

View File

@ -84,10 +84,7 @@ nsPluginsDir::nsPluginsDir(PRUint16 location)
const char *pluginsDir = sysdir.GetCString(); // native path
if (pluginsDir != NULL)
{
const char* allocPath;
allocPath = PL_strdup(pluginsDir);
*(nsFileSpec*)this = allocPath;
*(nsFileSpec*)this = pluginsDir;
}
}

View File

@ -84,10 +84,7 @@ nsPluginsDir::nsPluginsDir(PRUint16 location)
const char *pluginsDir = sysdir.GetCString(); // native path
if (pluginsDir != NULL)
{
const char* allocPath;
allocPath = PL_strdup(pluginsDir);
*(nsFileSpec*)this = allocPath;
*(nsFileSpec*)this = pluginsDir;
}
}