mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 10:44:41 +00:00
Merge "remove manually freeing the variable mDeathRecipient" into main
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user