Safety check our automatic context deleting. (NGLayout only)

git-svn-id: svn://10.0.0.236/trunk@6742 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scullin%netscape.com
1998-07-29 18:44:23 +00:00
parent cbb188e7fa
commit 9eb212f8af

View File

@@ -609,6 +609,10 @@ static void bam_exit_routine(URL_Struct *URL_s, int status, MWContext *window_id
extern "C" void net_ReleaseContext(MWContext *context)
{
if (context) {
free_stub_context(context);
if (context->modular_data) {
free_stub_context(context);
} else {
TRACEMSG(("net_ReleaseContext: not releasing non-modular context"));
}
}
}