Permalink
Browse files

fix clientData memory leaks

Change-Id: I1ae9045fa9a95a633cb2fe438c15b2d717bf75f9
Signed-off-by: Andrew Sutherland <dr3wsuth3rland@gmail.com>
  • Loading branch information...
1 parent 2446d35 commit 694d8f7e57ff1bc7a1db6ef08eb0b464c5fa605e @rapmv78 rapmv78 committed with drewis May 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 QcomCamera.cpp
View
@@ -352,6 +352,7 @@ static void cam_data_callback(int32_t msgType,
if (clientData != NULL) {
LOGE("cam_data_callback: Posting data to client");
origData_cb(msgType, clientData, 0, NULL, user);
+ clientData->release(clientData);
}
}
}
@@ -373,6 +374,7 @@ static void cam_data_callback_timestamp(nsecs_t timestamp,
systemTime());
origDataTS_cb(timestamp, msgType, clientData, 0, user);
qCamera->releaseRecordingFrame(dataPtr);
+ clientData->release(clientData);
} else {
LOGE("cam_data_callback_timestamp: ERROR allocating memory from client");
}

0 comments on commit 694d8f7

Please sign in to comment.