diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index 4f886c8b2..9bf024b6b 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -398,6 +398,8 @@ void Notepad_plus::command(int id) memcpy(lpucharCopy, pBinText, textLen * sizeof(unsigned char)); lpucharCopy[textLen] = 0; // null character + delete[] pBinText; + GlobalUnlock(hglbCopy); // Place the handle on the clipboard.