Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix clientData memory leaks

Change-Id: I1ae9045fa9a95a633cb2fe438c15b2d717bf75f9
Signed-off-by: Andrew Sutherland <dr3wsuth3rland@gmail.com>
  • Loading branch information...
commit 694d8f7e57ff1bc7a1db6ef08eb0b464c5fa605e 1 parent 2446d35
@rapmv78 rapmv78 authored drewis committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  QcomCamera.cpp
View
2  QcomCamera.cpp
@@ -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");
}
Please sign in to comment.
Something went wrong with that request. Please try again.