diff --git a/Core/Dialog/PSPGamedataInstallDialog.cpp b/Core/Dialog/PSPGamedataInstallDialog.cpp index a699afb66..e634058b4 100644 --- a/Core/Dialog/PSPGamedataInstallDialog.cpp +++ b/Core/Dialog/PSPGamedataInstallDialog.cpp @@ -76,12 +76,12 @@ int PSPGamedataInstallDialog::Update() { u64 totalLength; u64 restLength; u32 bytesToRead = 4096; - u8 *temp = new u8[4096]; u32 inhandle; u32 outhandle; size_t readSize; if (readFiles < numFiles) { + u8 *temp = new u8[4096]; fullinFileName = "disc0:/PSP_GAME/INSDIR/" + inFileNames[readFiles]; outFileName = GetGameDataInstallFileName(&request, inFileNames[readFiles]); totalLength = pspFileSystem.GetFileInfo(fullinFileName).size;