freed gSavedLine in prefapi

git-svn-id: svn://10.0.0.236/trunk@48360 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com 1999-09-20 20:52:48 +00:00
parent 618f9c286c
commit 64ef319f12
2 changed files with 6 additions and 34 deletions

View File

@ -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);

View File

@ -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);