diff options
| -rw-r--r-- | include/m_database.h | 1 | ||||
| -rw-r--r-- | libs/win32/mir_app.lib | bin | 274776 -> 275042 bytes | |||
| -rw-r--r-- | libs/win64/mir_app.lib | bin | 274046 -> 274316 bytes | |||
| -rw-r--r-- | src/mir_app/src/db_events.cpp | 9 | ||||
| -rw-r--r-- | src/mir_app/src/mir_app.def | 1 | ||||
| -rw-r--r-- | src/mir_app/src/mir_app64.def | 1 |
6 files changed, 12 insertions, 0 deletions
diff --git a/include/m_database.h b/include/m_database.h index d47936bd56..9df09c881e 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -688,6 +688,7 @@ namespace DB ~EventInfo();
bool fetch(MEVENT hEvent, bool bFetchBlob = true);
+ void unload();
__forceinline operator bool() const { return bValid; }
diff --git a/libs/win32/mir_app.lib b/libs/win32/mir_app.lib Binary files differindex fc309e0d37..da68ce9908 100644 --- a/libs/win32/mir_app.lib +++ b/libs/win32/mir_app.lib diff --git a/libs/win64/mir_app.lib b/libs/win64/mir_app.lib Binary files differindex a7dee29e14..1775aa7f3d 100644 --- a/libs/win64/mir_app.lib +++ b/libs/win64/mir_app.lib diff --git a/src/mir_app/src/db_events.cpp b/src/mir_app/src/db_events.cpp index 7a60c07e12..7026fe8905 100644 --- a/src/mir_app/src/db_events.cpp +++ b/src/mir_app/src/db_events.cpp @@ -278,6 +278,15 @@ bool DB::EventInfo::fetch(MEVENT hEvent, bool bFetchBlob) return bValid = ::db_event_get(hEvent, this) == 0;
}
+void DB::EventInfo::unload()
+{
+ if (pBlob) {
+ mir_free(pBlob);
+ pBlob = nullptr;
+ }
+ bValid = false;
+}
+
// could be displayed in a SRMM window
bool DB::EventInfo::isSrmm() const
{
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index 0cac4afff0..070dbf3b52 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -915,3 +915,4 @@ Clist_GroupSaveExpanded @1003 NONAME ?SetQuoteEvent@CSrmmBaseDialog@@QAEXI@Z @1033 NONAME
?onClick_CloseQuote@CSrmmBaseDialog@@IAEXPAVCCtrlButton@@@Z @1034 NONAME
?fetch@EventInfo@DB@@QAE_NI_N@Z @1035 NONAME
+?unload@EventInfo@DB@@QAEXXZ @1036 NONAME
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index 3626410d26..ea073ca0d2 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -915,3 +915,4 @@ Clist_GroupSaveExpanded @1003 NONAME ?SetQuoteEvent@CSrmmBaseDialog@@QEAAXI@Z @1033 NONAME
?onClick_CloseQuote@CSrmmBaseDialog@@IEAAXPEAVCCtrlButton@@@Z @1034 NONAME
?fetch@EventInfo@DB@@QEAA_NI_N@Z @1035 NONAME
+?unload@EventInfo@DB@@QEAAXXZ @1036 NONAME
|
