moxiecode/plupload — pull request #515 by ewit (2012-03-09 09:32:22+00:00)
Title: Fix for crash when destroying uploader right after init

When using plupload pages in javascript application, it often gets destroyed few seconds after it has been initialized. When this happens, plupload crashes after some time with an error caused by missing container (missing obj in getStyles, to be precise).
The problem seems to me to be the waitLoad function. When the pluploader is destroyed, the waitLoad function keeps waiting and calls the callback even after pluploader is destroyed.
My fix is to save destroy-state on the flash runtime and then when waitLoad runs, I check if the pluploader is destroyed and if so aborts.

Small fix, hope you like it :)