diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-04 13:03:00 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-04 13:03:00 +0300 |
commit | 7df671fa2b5260ab25ec456af143ce66e17a43d5 (patch) | |
tree | dbc8f0e348b7662f76ad7bdbf62692447796fb75 /libs | |
parent | 1f6bcd03f61b94992bf8171b5271a979f6203828 (diff) |
NewStory:
- mind blowing enum EventLoadMode removed and replaced with the simple bool flag;
- massive memory leak removed;
- wtext_del flag removed (now all strings are allocated via mir_alloc());
- displayed events now are marked as read if needed
Diffstat (limited to 'libs')
-rw-r--r-- | libs/mTextControl/src/services.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/mTextControl/src/services.cpp b/libs/mTextControl/src/services.cpp index f1e3dcfed3..4e1ca40034 100644 --- a/libs/mTextControl/src/services.cpp +++ b/libs/mTextControl/src/services.cpp @@ -190,6 +190,6 @@ MTEXTCONTROL_DLL(int) MTextSendMessage(HWND hwnd, HANDLE text, UINT msg, WPARAM MTEXTCONTROL_DLL(int) MTextDestroy(HANDLE text) { - if (text) delete (TextObject *)text; + delete (TextObject *)text; return 0; } |