aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjenkins4kodi <jenkins4kodi@users.noreply.github.com>2024-02-15 00:24:44 -0800
committerGitHub <noreply@github.com>2024-02-15 00:24:44 -0800
commit76e2e31b7acef5d01772c13e47fade8f6c9f60c3 (patch)
treebcdfaba787329191d5dcbe2fcade7c313d9df85a
parent5357ce07bb0fdaee703692970524037f28f05951 (diff)
parentc3a5475aafb24eb15ad3a3cf915e8607c0095da1 (diff)
Merge pull request #24706 from philipturnbull/tagloaderlib-crash
-rw-r--r--xbmc/music/tags/TagLoaderTagLib.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/music/tags/TagLoaderTagLib.cpp b/xbmc/music/tags/TagLoaderTagLib.cpp
index f4f676067a..b6881d5762 100644
--- a/xbmc/music/tags/TagLoaderTagLib.cpp
+++ b/xbmc/music/tags/TagLoaderTagLib.cpp
@@ -1279,6 +1279,7 @@ bool CTagLoaderTagLib::Load(const std::string& strFileName, CMusicInfoTag& tag,
if (!file || !file->isValid())
{
delete file;
+ file = nullptr;
oggFlacFile = nullptr;
file = oggVorbisFile = new Ogg::Vorbis::File(stream);
}