//------------------------------------------------------------------------------------- DataDownload::~DataDownload() { SAFE_RELEASE_ARRAY(stream_); Proxy* proxy = static_cast<Proxy*>(Baseapp::getSingleton().findEntity(entityID_)); if(proxy) { proxy->onStreamComplete(id_, totalBytes_ > 0 ? totalSentBytes_ == totalBytes_ : false); } }