sm8450-common: nonui-notifier: Switch to shared_ptr to avoid memory leaks

Change-Id: I950bd5f6abd1dd78093864f5813ab22f0e093ded
This commit is contained in:
Arian
2025-03-25 17:23:40 +01:00
parent 9aa22d6c2a
commit b6d0f0fb2b
5 changed files with 14 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ void AodNotifier::notify() {
continue;
}
struct disp_event_resp* response = parseDispEvent(disp_fd_.get());
std::shared_ptr<disp_event_resp> response = parseDispEvent(disp_fd_.get());
if (response == nullptr) {
continue;
}