Using std::make_shared with ndk::SharedRefBase objects causes memory errors. Bug: 226379467 Test: TH Change-Id: I3649ace96067e68cfc0ac998c836d9a8bd48bd11
22 lines
485 B
C++
22 lines
485 B
C++
//
|
|
// Copyright 2022 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
//
|
|
|
|
#include "WVCreatePluginFactories.h"
|
|
|
|
namespace wvdrm {
|
|
namespace hardware {
|
|
namespace drm {
|
|
namespace widevine {
|
|
|
|
std::shared_ptr<WVDrmFactory> createDrmFactory() {
|
|
return ndk::SharedRefBase::make<WVDrmFactory>();
|
|
}
|
|
|
|
} // namespace widevine
|
|
} // namespace drm
|
|
} // namespace hardware
|
|
} // namespace wvdrm
|