diff options
author | Mataes <mataes2007@gmail.com> | 2020-04-11 15:47:21 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2020-04-11 15:47:21 +0300 |
commit | 467ebabf29c13a6f20ea5f7a1ec6d59c615e453c (patch) | |
tree | bccbf50beb763d4e4b0b87a6a852636f8eb9cfbb /plugins/NewStory | |
parent | 6938f9a6faf85e0d7ae81fc36174772d52caa47c (diff) |
Newstory: Unload 1st part, crash not fixed
Diffstat (limited to 'plugins/NewStory')
-rw-r--r-- | plugins/NewStory/src/main.cpp | 8 | ||||
-rw-r--r-- | plugins/NewStory/src/stdafx.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/plugins/NewStory/src/main.cpp b/plugins/NewStory/src/main.cpp index b5fb6a8591..085a613fb0 100644 --- a/plugins/NewStory/src/main.cpp +++ b/plugins/NewStory/src/main.cpp @@ -105,3 +105,11 @@ int CMPlugin::Load() HookEvent(ME_SYSTEM_MODULESLOADED, evtModulesLoaded); return 0; } + +int CMPlugin::Unload() +{ + UnregisterClass(_T(NEWSTORYLIST_CLASS), g_plugin.getInst()); + DestroyFonts(); + + return 0; +}
\ No newline at end of file diff --git a/plugins/NewStory/src/stdafx.h b/plugins/NewStory/src/stdafx.h index fc67c04f43..b58cadab99 100644 --- a/plugins/NewStory/src/stdafx.h +++ b/plugins/NewStory/src/stdafx.h @@ -76,5 +76,6 @@ struct CMPlugin : public PLUGIN<CMPlugin> CMPlugin(); int Load() override; + int Unload() override; }; |