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

Commit 20e69160 authored by Yunlian Jiang's avatar Yunlian Jiang Committed by android-build-merger
Browse files

Merge "Fix memory leak warning." am: ae6088e4 am: 37cd5f11 am: 4c09f57e

am: 31dcf015

Change-Id: Ief95861362c2ed6146c12c2b1570024dbde49269
parents 8a9f4204 31dcf015
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -245,8 +245,12 @@ void MediaPlayerFactory::registerBuiltinFactories() {
    if (sInitComplete)
        return;

    registerFactory_l(new NuPlayerFactory(), NU_PLAYER);
    registerFactory_l(new TestPlayerFactory(), TEST_PLAYER);
    IFactory* factory = new NuPlayerFactory();
    if (registerFactory_l(factory, NU_PLAYER) != OK)
        delete factory;
    factory = new TestPlayerFactory();
    if (registerFactory_l(factory, TEST_PLAYER) != OK)
        delete factory;

    sInitComplete = true;
}