Fix crash on pasting from clipboard
I don't know why it didn't happen for anyone else, but according to https://wiki.libsdl.org/SDL_GetClipboardText : "Use this function to get UTF-8 text from the clipboard, which must be freed with SDL_free().". MSVC detected some heap corruption because of free(text);dev-time-step
parent
9effa308ce
commit
9679546988
|
@ -2578,7 +2578,7 @@ bool CEdit::Paste()
|
||||||
InsertOne(c);
|
InsertOne(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(text);
|
SDL_free(text);
|
||||||
Justif();
|
Justif();
|
||||||
ColumnFix();
|
ColumnFix();
|
||||||
SendModifEvent();
|
SendModifEvent();
|
||||||
|
|
Loading…
Reference in New Issue