Fixed leaked path string.
git-svn-id: svn://10.0.0.236/trunk@49086 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user