hwc: Fix klockwork errors

Resolving klockwork errors to avoid memory leaks,
improper assignments in liboverlay.

Change-Id: I82ac6ae782c7b783e89999b832bbd1d361376b9f
This commit is contained in:
Praveena Pachipulusu
2014-05-07 20:01:54 +05:30
parent b6c714c901
commit 2005e8f612
5 changed files with 29 additions and 28 deletions

View File

@@ -271,7 +271,12 @@ IAllocController* IAllocController::getInstance(void)
//-------------- IonController-----------------------//
IonController::IonController()
{
mIonAlloc = new IonAlloc();
allocateIonMem();
}
void IonController::allocateIonMem()
{
mIonAlloc = new IonAlloc();
}
int IonController::allocate(alloc_data& data, int usage)