From dbdb73c1204d51f21677481a203ff3a206a52518 Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Sat, 6 Apr 2024 10:47:49 +0800 Subject: [PATCH] fix: close file after fixing metadata(#17) --- src/ncmcrypt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ncmcrypt.cpp b/src/ncmcrypt.cpp index a27ede1..6524bd1 100644 --- a/src/ncmcrypt.cpp +++ b/src/ncmcrypt.cpp @@ -253,9 +253,10 @@ void NeteaseCrypt::FixMetadata() tag->setAlbum(TagLib::String(mMetaData->album(), TagLib::String::UTF8)); } - tag->setComment(TagLib::String("Create by netease copyright protected dump tool. author 5L", TagLib::String::UTF8)); + tag->setComment(TagLib::String("Create by taurusxin/ncmdump.", TagLib::String::UTF8)); audioFile->save(); + audioFile->~File(); } void NeteaseCrypt::Dump()