зеркало из https://github.com/mozilla/gecko-dev.git
plugging leaks. bug 301138 a:don.
This commit is contained in:
Родитель
8c6299af3d
Коммит
d864fe4155
|
@ -25,6 +25,7 @@
|
|||
#include "atalk.h"
|
||||
#include "fs2rdf.h"
|
||||
#include "glue.h"
|
||||
#include "mcf.h"
|
||||
|
||||
/* external string references in allxpstr */
|
||||
extern int RDF_UNABLETODELETEFILE, RDF_UNABLETODELETEFOLDER;
|
||||
|
@ -59,6 +60,7 @@ GuessIEBookmarks (void)
|
|||
}
|
||||
freeMem(pn);
|
||||
}
|
||||
PR_DELETE(ProfilesDir);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -131,6 +131,7 @@ DBM_OpenDBMStore (DBMRDF store, char* directory)
|
|||
CHECK_VAR1(profileDirURL);
|
||||
dirPathname = makeDBURL(directory);
|
||||
CallPRMkDirUsingFileURL(dirPathname, 00700);
|
||||
freeMem(dirPathname);
|
||||
|
||||
dbPathname = makeRDFDBURL(directory, "names.db");
|
||||
CHECK_VAR1(dbPathname);
|
||||
|
|
|
@ -75,6 +75,7 @@ walkThroughAllBookmarks (RDF_Resource u)
|
|||
while ((next = RDF_NextValue(c)) != NULL) {
|
||||
if (resourceType(next) == RDF_RT) walkThroughAllBookmarks(next);
|
||||
}
|
||||
freeMem(c);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -118,8 +119,6 @@ RDF_Init(RDF_InitParams params)
|
|||
PREF_CopyCharPref("browser.NavCenter", &navCenterURL);
|
||||
if (!strchr(navCenterURL, ':')) {
|
||||
navCenterURL = makeDBURL(navCenterURL);
|
||||
} else {
|
||||
copyString(navCenterURL);
|
||||
}
|
||||
*(gNavCenterDataSources + 1) = copyString(navCenterURL);
|
||||
gNCDB = newNavCenterDB();
|
||||
|
|
Загрузка…
Ссылка в новой задаче