Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abfb9a54 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "spatializer: fix resource leak when dlsym failed"

parents c068aa5d 3f792ac8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ audio_effect_library_t AUDIO_EFFECT_LIBRARY_INFO_SYM = [] {
                (audio_effect_library_t*)dlsym(effectLib, AUDIO_EFFECT_LIBRARY_INFO_SYM_AS_STR);
        if (effectInterface == nullptr) {
            ALOGE("dlsym failed: %s", dlerror());
            dlclose(effectLib);
            exit(-1);
        }
        symbol = (audio_effect_library_t)(*effectInterface);
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ audio_effect_library_t AUDIO_EFFECT_LIBRARY_INFO_SYM = [] {
                (audio_effect_library_t*)dlsym(effectLib, AUDIO_EFFECT_LIBRARY_INFO_SYM_AS_STR);
        if (effectInterface == nullptr) {
            ALOGE("dlsym failed: %s", dlerror());
            dlclose(effectLib);
            exit(-1);
        }
        symbol = (audio_effect_library_t)(*effectInterface);