From c07901e29ed545bbb02e3bddf148fe1104b94e9f Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:44:56 -0500 Subject: Second Life viewer sources 1.15.1.3 --- linden/indra/newview/llfloaterimport.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'linden/indra/newview/llfloaterimport.cpp') diff --git a/linden/indra/newview/llfloaterimport.cpp b/linden/indra/newview/llfloaterimport.cpp index 72cf2e0..ed71c1b 100644 --- a/linden/indra/newview/llfloaterimport.cpp +++ b/linden/indra/newview/llfloaterimport.cpp @@ -44,12 +44,13 @@ #include "llface.h" #include "llinventorymodel.h" #include "lllineeditor.h" +#include "llresourcedata.h" #include "lltextbox.h" #include "lltoolmgr.h" #include "llui.h" #include "lluploaddialog.h" #include "llviewercamera.h" -#include "llviewermenu.h" +#include "llviewermenufile.h" // upload_new_resource() #include "llviewerwindow.h" #include "llvoavatar.h" #include "pipeline.h" @@ -264,9 +265,8 @@ BOOL LLFloaterImport::postBuild() FILE* fCheck = LLFile::fopen(image_path.c_str(), "rb"); /*Flawfinder: ignore*/ if (fCheck) { - LLMD5 my_md5_hash(fCheck); + LLMD5 my_md5_hash(fCheck); // this fclose()s fCheck too my_md5_hash.hex_digest(md5_hash_string); - fclose(fCheck); llinfos << "hash: " << md5_hash_string << llendl; } @@ -474,7 +474,7 @@ void LLFloaterImport::finishImport(ImportAssetInfo *info) char *buffer = new char[length]; ll_apr_file_read(fIn, buffer, length); ll_apr_file_write(fOut, buffer, length); - delete buffer; + delete[] buffer; generated_file = true; apr_file_close(fOut); } -- cgit v1.1