Skip to content
Snippets Groups Projects
Commit 938c6082 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #25242: daemon: close codec handle on exception

parent 4a007f5e
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,8 @@ AudioCodecFactory::loadCodec(const std::string &path)
sfl::AudioCodec *a = static_cast<sfl::AudioCodec *>(createCodec());
if (a)
codecInMemory_.push_back(AudioCodecHandlePointer(a, codecHandle));
else
dlclose(codecHandle);
return a;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment