Safety check our automatic context deleting. (NGLayout only)

This commit is contained in:
scullin%netscape.com 1998-07-29 18:44:23 +00:00
parent b1a37e8b47
commit e56171c730

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"));
}
}
}