Fix Issue #1277: Avoid premature deletion of ResourceObject (which my be still being referenced by some other object handling some signal) by using deleteLater instead of delete.
Merge pull request #29 from pruiz/issue-1277

Fix Issue #1277: Avoid premature deletion of ResourceObject (which my be still being referenced by some other object handling some signal) by using deleteLater instead of delete.
Removed some memory errors detected by valgrind, and added a couple of asserts to help exposing unexpected faults.
Added another disposed object usage check, along with a few more replacements of delete by deleteLater().
Apply deleteLater() to converter instance's destruction C-API method.
Try to ensure no more web requests can be made by finished resource objects (like when a JS script is trying to reload, etc.)
Fixed crash when converting an URL with HTTP authentication, using '--load-error-handling skip' which results in a crash at pdfconverter due to an unitialized QWebPrinter (as there's no resulting page to print at all..)
Avoid delaying calls to ResourceObject::loadDone() when the resource failed to load, as no JS code would be invoked at all.
Avoid hanging for ever when converting an URL with failing HTTP authentication, and also try to report/handle this sort of errors in the same way we treat any other error (ie. abort, skip, ignore, etc.). Currently this sort of errors were provoking an early release of resources which end up hanging the application due to invalid memory access to deleted pointer/objects, and/or missing signals.
Network (or equivalent) level errors throwing during the loading of a resource (such trying to access an invalid URL) were not being detailed reported. I've added code to take into account QNetworkReply->error() along with HTTP's statuses.
Avoid crashing when a late requests caused by iframe or scripts loading too late, and emit a warning instead.
Update nsi.m4 with patch from Brian Forte
Remove 'pruiz' from comments.
Merge pull request #30 from pruiz/misc-enhacements

Collection of fixes and enhacenments over memory and error management issues I've found latelly