Fix crash _and_ memory leak? Is it too much to hope?
git-svn-id: svn://10.0.0.236/trunk@6144 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
264497527a
commit
e6798021cc
@ -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 */
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user