mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 00:04:25 +02:00
Fix a memory leak in "Copy Binary Content" comment
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11671#issuecomment-1128975960
This commit is contained in:
parent
8a37bed448
commit
c9b177bb9e
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user