mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-10-18 14:13:52 +02:00
parent
c367ab8966
commit
c710439b51
@ -360,6 +360,7 @@ void HashFromTextDlg::generateHash()
|
||||
break;
|
||||
|
||||
default:
|
||||
delete[] text;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -444,6 +445,7 @@ void HashFromTextDlg::generateHashPerLine()
|
||||
break;
|
||||
|
||||
default:
|
||||
delete[] text;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -471,6 +471,8 @@ void Notepad_plus::command(int id)
|
||||
|
||||
::GlobalUnlock(hglbCopy);
|
||||
|
||||
pBinText.reset(nullptr); // free possible big membuf ASAP
|
||||
|
||||
// Place the handle on the clipboard.
|
||||
if (!::SetClipboardData(CF_TEXT, hglbCopy))
|
||||
{
|
||||
@ -3477,6 +3479,7 @@ void Notepad_plus::command(int id)
|
||||
break;
|
||||
|
||||
default:
|
||||
delete[] selectedStr;
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < hashLen; i++)
|
||||
|
@ -3061,6 +3061,7 @@ bool FindReplaceDlg::processFindNext(const wchar_t *txt2find, const FindOption *
|
||||
else if (posFind == FIND_INVALID_REGULAR_EXPRESSION)
|
||||
{ // error
|
||||
setStatusbarMessageWithRegExprErr(*_ppEditView);
|
||||
delete[] pText;
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -3656,6 +3657,7 @@ int FindReplaceDlg::processRange(ProcessOperation op, FindReplaceInfo & findRepl
|
||||
default:
|
||||
{
|
||||
delete[] pTextFind;
|
||||
if (pTextReplace)
|
||||
delete[] pTextReplace;
|
||||
return nbProcessed;
|
||||
}
|
||||
@ -3673,6 +3675,7 @@ int FindReplaceDlg::processRange(ProcessOperation op, FindReplaceInfo & findRepl
|
||||
}
|
||||
|
||||
delete[] pTextFind;
|
||||
if (pTextReplace)
|
||||
delete[] pTextReplace;
|
||||
|
||||
if (nbProcessed > 0)
|
||||
|
@ -295,6 +295,7 @@ intptr_t CALLBACK ClipboardHistoryPanel::run_dlgProc(UINT message, WPARAM wParam
|
||||
catch (...)
|
||||
{
|
||||
MessageBox(_hSelf, L"Cannot process this clipboard data in the history:\nThe data is too large to be treated.", L"Clipboard problem", MB_OK | MB_APPLMODAL);
|
||||
if (c)
|
||||
delete[] c;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user