aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/SMpeg
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Game/Code/SMpeg/USmpeg.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/Game/Code/SMpeg/USmpeg.pas b/Game/Code/SMpeg/USmpeg.pas
index c7f756db..85f3f988 100644
--- a/Game/Code/SMpeg/USmpeg.pas
+++ b/Game/Code/SMpeg/USmpeg.pas
@@ -112,8 +112,9 @@ end;
procedure CloseSmpeg;
begin
-// glmovie_quit;
SMPEG_delete(mpeg);
+ //Fixing the Memory Lag in earlyer Versions (X-Mas Mod, all Official Versions)
+ glmovie_quit;
end;
function glmovie_init( Width : GLuint; Height : TGLuint ) : TGLenum;
@@ -294,6 +295,7 @@ end;
procedure glmovie_quit;
begin
glDeleteTextures(1, @texture_ids);
+ SDL_FreeSurface(surface);
end;
end.