diff options
-rw-r--r-- | plugins/NotesAndReminders/src/notes.cpp | 4 | ||||
-rw-r--r-- | plugins/NotesAndReminders/src/version.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp index ef1c129635..c547994008 100644 --- a/plugins/NotesAndReminders/src/notes.cpp +++ b/plugins/NotesAndReminders/src/notes.cpp @@ -271,7 +271,7 @@ static void JustSaveNotes(STICKYNOTE *pModified = nullptr) if (SzT) { // TODO: change to support unicode and rtf, use EM_STREAMOUT if (SzT > MAX_NOTE_LEN) SzT = MAX_NOTE_LEN; // we want to be far below the 64k limit - pNote->wszText.Preallocate(SzT + 1); + pNote->wszText.Truncate(SzT + 1); GetWindowTextW(pNote->REHwnd, pNote->wszText.GetBuffer(), SzT + 1); } else pNote->wszText.Empty(); @@ -1236,7 +1236,7 @@ static void LoadNote(char *Value, bool bIsStartup) case DATATAG_TEXT: if (auto *pwszTmp = mir_utf8decodeW(TVal)) { wszText = pwszTmp; - delete pwszTmp; + mir_free(pwszTmp); } else wszText = _A2T(TVal); break; diff --git a/plugins/NotesAndReminders/src/version.h b/plugins/NotesAndReminders/src/version.h index fcfef34732..1c982ce81c 100644 --- a/plugins/NotesAndReminders/src/version.h +++ b/plugins/NotesAndReminders/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 2 #define __RELEASE_NUM 2 -#define __BUILD_NUM 1 +#define __BUILD_NUM 2 #include <stdver.h> |