diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.cpp index 5ba653e4..9577ba72 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.cpp @@ -193,6 +193,7 @@ plMoviePlayer::~plMoviePlayer() delete fReader; } #endif + delete[] fMoviePath; } bool plMoviePlayer::IOpenMovie() diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.h b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.h index 64b45a0b..3a1b70ca 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.h +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.h @@ -102,7 +102,11 @@ public: plMessage* GetCallback(int i) const { return nullptr; } const char *GetFileName() const { return fMoviePath; } - void SetFileName(const char* filename) { fMoviePath = filename; } + void SetFileName(const char* filename) + { + delete[] fMoviePath; + fMoviePath = hsStrcpy(filename); + } void SetColor(const hsColorRGBA& c) { } const hsColorRGBA GetColor() const { return hsColorRGBA(); }