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

Commit e34b0da0 authored by Ashish Kumar Gupta's avatar Ashish Kumar Gupta
Browse files

Resource leak issue

Bug: 335984333
Change-Id: Id2f8de5e8c185884bd9abf870be93ad5df55c579
Test: presubmit
parent 2cd702f2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -132,6 +132,10 @@ MtpServer::MtpServer(IMtpDatabase* database, int controlFd, bool ptp,
}

MtpServer::~MtpServer() {
    if (mHandle) {
        delete mHandle;
        mHandle = NULL;
    }
}

void MtpServer::addStorage(MtpStorage* storage) {