360268ee25
We already did it just before processing the state change event, but this was too late, as the object could have been already deleted by then and this actually happened with the example from wxWebRequest documentation. Do it earlier now, as soon as the request becomes active, which normally happens when Start() is called, and keep the reference until the event is processed after the request reaches one of the final states (completed, failed or cancelled). Add a unit test checking that deleting the wxWebRequest object doesn't prevent the request from running to the completion any more. |
||
---|---|---|
.. | ||
addremovectrl.h | ||
animate.h | ||
display.h | ||
eventloopsourcesmanager.h | ||
extfield.h | ||
fd.h | ||
fdiodispatcher.h | ||
fdioeventloopsourcehandler.h | ||
fdiohandler.h | ||
fdiomanager.h | ||
fileback.h | ||
filename.h | ||
flagscheck.h | ||
fontmgr.h | ||
fswatcher.h | ||
graphics.h | ||
icondir.h | ||
json.h | ||
jsscriptwrapper.h | ||
launchbrowser.h | ||
markupparser.h | ||
markupparserattr.h | ||
menuradio.h | ||
notifmsg.h | ||
overlay.h | ||
pipestream.h | ||
preferences.h | ||
refcountermt.h | ||
richtooltip.h | ||
sckaddr.h | ||
secretstore.h | ||
selectdispatcher.h | ||
socket.h | ||
spinctrl.h | ||
streamtempinput.h | ||
textmeasure.h | ||
threadinfo.h | ||
timer.h | ||
tlwgeom.h | ||
uiaction.h | ||
unicode.h | ||
webrequest_curl.h | ||
webrequest.h | ||
window.h | ||
wxprintf.h |