MAINT-387 FIXED [PUBLIC]Possible crash in llviewermenufile/upload_done_callback

- Just moved the deletion to the inspected block
meow-7.2.2
paul_productengine 2012-02-24 21:29:59 +02:00
parent a128836ded
commit d356e2be0f
1 changed files with 3 additions and 2 deletions

View File

@ -949,11 +949,12 @@ void upload_done_callback(
args["REASON"] = std::string(LLAssetStorage::getErrorString(result));
LLNotificationsUtil::add("CannotUploadReason", args);
}
delete data;
data = NULL;
}
LLUploadDialog::modalUploadFinished();
delete data;
data = NULL;
// *NOTE: This is a pretty big hack. What this does is check the
// file picker if there are any more pending uploads. If so,