aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplugin/src/media
diff options
context:
space:
mode:
Diffstat (limited to 'mediaplugin/src/media')
-rw-r--r--mediaplugin/src/media/UMediaPlugin.pas1
1 files changed, 1 insertions, 0 deletions
diff --git a/mediaplugin/src/media/UMediaPlugin.pas b/mediaplugin/src/media/UMediaPlugin.pas
index eb4cf395..4baa778a 100644
--- a/mediaplugin/src/media/UMediaPlugin.pas
+++ b/mediaplugin/src/media/UMediaPlugin.pas
@@ -440,6 +440,7 @@ begin
begin
FileInfo := Iter.Next();
ModuleFile := MediaPluginPath.Append(FileInfo.Name);
+ Module := INVALID_MODULEHANDLE_VALUE;
if (not LoadModule(Module, PChar(ModuleFile.ToNative))) then
begin
Log.LogInfo('Failed to load media plugin: "' + FileInfo.Name.ToNative + '"',