Merge "remove manually freeing the variable mDeathRecipient" into main am: f865a8b7cd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2725094 Change-Id: I0eebd4491b62a1998c39f017740a6d261fe80008 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
779ddee8ba
2 changed files with 1 additions and 5 deletions
|
@ -59,10 +59,6 @@ ThreadChip::ThreadChip(char* url) : mUrl(), mRxFrameBuffer(), mCallback(nullptr)
|
|||
AIBinder_DeathRecipient_setOnUnlinked(mDeathRecipient.get(), ThreadChip::onBinderUnlinkedJump);
|
||||
}
|
||||
|
||||
ThreadChip::~ThreadChip() {
|
||||
AIBinder_DeathRecipient_delete(mDeathRecipient.get());
|
||||
}
|
||||
|
||||
void ThreadChip::onBinderDiedJump(void* context) {
|
||||
reinterpret_cast<ThreadChip*>(context)->onBinderDied();
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace threadnetwork {
|
|||
class ThreadChip : public BnThreadChip, ot::Posix::Mainloop::Source {
|
||||
public:
|
||||
ThreadChip(char* url);
|
||||
~ThreadChip();
|
||||
~ThreadChip() {}
|
||||
|
||||
ndk::ScopedAStatus open(const std::shared_ptr<IThreadChipCallback>& in_callback) override;
|
||||
ndk::ScopedAStatus close() override;
|
||||
|
|
Loading…
Reference in a new issue