summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/NewStory/src/main.cpp8
-rw-r--r--plugins/NewStory/src/stdafx.h1
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;
};