freed gSavedLine in prefapi
git-svn-id: svn://10.0.0.236/trunk@48360 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
618f9c286c
commit
64ef319f12
@ -510,23 +510,7 @@ PR_IMPLEMENT(void) PREF_Cleanup()
|
||||
}
|
||||
gCallbacks = NULL;
|
||||
|
||||
if (gMochaContext)
|
||||
JS_DestroyContext(gMochaContext);
|
||||
gMochaContext = NULL;
|
||||
|
||||
if (gMochaTaskState)
|
||||
JS_Finish(gMochaTaskState);
|
||||
gMochaTaskState = NULL;
|
||||
|
||||
if (gHashTable)
|
||||
PR_HashTableDestroy(gHashTable);
|
||||
gHashTable = NULL;
|
||||
|
||||
#ifdef PREF_SUPPORT_OLD_PATH_STRINGS
|
||||
if (gFileName)
|
||||
PL_strfree(gFileName);
|
||||
gFileName = NULL;
|
||||
#endif
|
||||
PREF_CleanupPrefs();
|
||||
}
|
||||
|
||||
/* Frees up all the objects except the callback list. */
|
||||
@ -544,6 +528,8 @@ PR_IMPLEMENT(void) PREF_CleanupPrefs()
|
||||
PR_HashTableDestroy(gHashTable);
|
||||
gHashTable = NULL;
|
||||
|
||||
free(gSavedLine);
|
||||
|
||||
#ifdef PREF_SUPPORT_OLD_PATH_STRINGS
|
||||
if (gFileName)
|
||||
PL_strfree(gFileName);
|
||||
|
||||
@ -510,23 +510,7 @@ PR_IMPLEMENT(void) PREF_Cleanup()
|
||||
}
|
||||
gCallbacks = NULL;
|
||||
|
||||
if (gMochaContext)
|
||||
JS_DestroyContext(gMochaContext);
|
||||
gMochaContext = NULL;
|
||||
|
||||
if (gMochaTaskState)
|
||||
JS_Finish(gMochaTaskState);
|
||||
gMochaTaskState = NULL;
|
||||
|
||||
if (gHashTable)
|
||||
PR_HashTableDestroy(gHashTable);
|
||||
gHashTable = NULL;
|
||||
|
||||
#ifdef PREF_SUPPORT_OLD_PATH_STRINGS
|
||||
if (gFileName)
|
||||
PL_strfree(gFileName);
|
||||
gFileName = NULL;
|
||||
#endif
|
||||
PREF_CleanupPrefs();
|
||||
}
|
||||
|
||||
/* Frees up all the objects except the callback list. */
|
||||
@ -544,6 +528,8 @@ PR_IMPLEMENT(void) PREF_CleanupPrefs()
|
||||
PR_HashTableDestroy(gHashTable);
|
||||
gHashTable = NULL;
|
||||
|
||||
free(gSavedLine);
|
||||
|
||||
#ifdef PREF_SUPPORT_OLD_PATH_STRINGS
|
||||
if (gFileName)
|
||||
PL_strfree(gFileName);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user