Fixed leaked path string.

git-svn-id: svn://10.0.0.236/trunk@49086 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
1999-09-26 07:02:06 +00:00
parent 05db0355f5
commit 32eb182647
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ nsPluginsDir::nsPluginsDir()
PL_strcpy(&path[pathlen + 1], "plugins");
//dir = PR_OpenDir(path);
allocPath = PL_strdup(path);
allocPath = path;//PL_strdup(path);
*(nsFileSpec*)this = allocPath;
}
}

View File

@@ -143,7 +143,7 @@ nsPluginsDir::nsPluginsDir()
PL_strcpy(&path[pathlen + 1], "plugins");
//dir = PR_OpenDir(path);
allocPath = PL_strdup(path);
allocPath = path;//PL_strdup(path);
*(nsFileSpec*)this = allocPath;
}
}