diff --git a/mozilla/network/main/mkgeturl.c b/mozilla/network/main/mkgeturl.c index 1b1a8869e54..13685731882 100644 --- a/mozilla/network/main/mkgeturl.c +++ b/mozilla/network/main/mkgeturl.c @@ -3418,11 +3418,11 @@ PUBLIC int NET_ProcessNet (PRFileDesc *ready_fd, int fd_type) NET_SilentInterruptWindow(tmpEntry->window_id); } #endif /* MILAN */ +#ifdef MODULAR_NETLIB + net_ReleaseContext(tmpEntry->window_id); +#endif } -#ifdef MODULAR_NETLIB - net_ReleaseContext(tmpEntry->window_id); -#endif PR_Free(tmpEntry); /* free the now non active entry */ } /* end if rv < 0 */ diff --git a/mozilla/network/module/nsNetService.cpp b/mozilla/network/module/nsNetService.cpp index e11e38668e0..bff311ee9da 100644 --- a/mozilla/network/module/nsNetService.cpp +++ b/mozilla/network/module/nsNetService.cpp @@ -515,6 +515,6 @@ 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); + free_stub_context(context); } }