aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterimport.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterimport.cpp8
1 files changed, 4 insertions, 4 deletions
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 @@
44#include "llface.h" 44#include "llface.h"
45#include "llinventorymodel.h" 45#include "llinventorymodel.h"
46#include "lllineeditor.h" 46#include "lllineeditor.h"
47#include "llresourcedata.h"
47#include "lltextbox.h" 48#include "lltextbox.h"
48#include "lltoolmgr.h" 49#include "lltoolmgr.h"
49#include "llui.h" 50#include "llui.h"
50#include "lluploaddialog.h" 51#include "lluploaddialog.h"
51#include "llviewercamera.h" 52#include "llviewercamera.h"
52#include "llviewermenu.h" 53#include "llviewermenufile.h" // upload_new_resource()
53#include "llviewerwindow.h" 54#include "llviewerwindow.h"
54#include "llvoavatar.h" 55#include "llvoavatar.h"
55#include "pipeline.h" 56#include "pipeline.h"
@@ -264,9 +265,8 @@ BOOL LLFloaterImport::postBuild()
264 FILE* fCheck = LLFile::fopen(image_path.c_str(), "rb"); /*Flawfinder: ignore*/ 265 FILE* fCheck = LLFile::fopen(image_path.c_str(), "rb"); /*Flawfinder: ignore*/
265 if (fCheck) 266 if (fCheck)
266 { 267 {
267 LLMD5 my_md5_hash(fCheck); 268 LLMD5 my_md5_hash(fCheck); // this fclose()s fCheck too
268 my_md5_hash.hex_digest(md5_hash_string); 269 my_md5_hash.hex_digest(md5_hash_string);
269 fclose(fCheck);
270 270
271 llinfos << "hash: " << md5_hash_string << llendl; 271 llinfos << "hash: " << md5_hash_string << llendl;
272 } 272 }
@@ -474,7 +474,7 @@ void LLFloaterImport::finishImport(ImportAssetInfo *info)
474 char *buffer = new char[length]; 474 char *buffer = new char[length];
475 ll_apr_file_read(fIn, buffer, length); 475 ll_apr_file_read(fIn, buffer, length);
476 ll_apr_file_write(fOut, buffer, length); 476 ll_apr_file_write(fOut, buffer, length);
477 delete buffer; 477 delete[] buffer;
478 generated_file = true; 478 generated_file = true;
479 apr_file_close(fOut); 479 apr_file_close(fOut);
480 } 480 }