2
xulrunner/stub/nsXULStub.cpp | 5 ++++-
3
1 file changed, 4 insertions(+), 1 deletion(-)
5
Index: mozilla/xulrunner/stub/nsXULStub.cpp
6
===================================================================
7
--- mozilla.orig/xulrunner/stub/nsXULStub.cpp
8
+++ mozilla/xulrunner/stub/nsXULStub.cpp
12
greFound = (access(greDir, R_OK) == 0);
14
strncpy(lastSlash, "application.ini", sizeof(iniPath) - (lastSlash - iniPath));
19
+ // Leak the INI parser intentionally, because it allocates memory using the
20
+ // libc malloc and, once we load libxul, would deallocate it using
22
+ nsINIParser &parser = *new nsINIParser();
23
rv = parser.Init(iniPath);
25
fprintf(stderr, "Could not read application.ini\n");
30
char minVersion[VERSION_MAXLEN];