launcher: fix crashing

This commit is contained in:
somewhatlurker
2019-08-30 00:16:34 +10:00
parent 2e2ecb9543
commit b8e6e7b59a
2 changed files with 4 additions and 2 deletions
@@ -2,6 +2,7 @@
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <vector>
#include "framework.h"
// resolution class to store and sort the width and height easily
class resolution
@@ -313,12 +313,13 @@ std::vector<PluginInfo> LoadPlugins()
if (descFunc != NULL)
thisplugin.description = descFunc();
else
thisplugin.description = (thisplugin.filename + L" plugin").c_str();
thisplugin.description = (thisplugin.filename + L" Plugin").c_str();
if (optsFunc != NULL)
thisplugin.configopts = optsFunc();
FreeLibrary(thisplugin.handle);
// afaik FreeLibrary should be fine because of ref counting, but it isn't. whatever.
// FreeLibrary(thisplugin.handle);
outvec.push_back(thisplugin);
}