commit | d01c148195283d6bc68e2bd1486380f118d89e00 | [log] [tgz] |
---|---|---|
author | Sangkyu Lee <sk82.lee@lge.com> | Fri Feb 08 16:26:39 2013 +0900 |
committer | Sangkyu Lee <sk82.lee@lge.com> | Thu Feb 28 16:42:42 2013 +0900 |
tree | b3cb31c334d9875b1f9473be7e31611966cc1455 | |
parent | 12834fe289e8173e94f31603fa6d313abe56ad70 [diff] |
Avoid invalid memory access when using extractMetadata() BpMediaMetadataRetriever::extractMetadata() returns a string which is returned by readCString() function of the reply parcel object. However, the parcel object is destroyed at the end of the extractMetadata() function, and so the returned pointer is invalid. This patch fixes this problem by storing the metadata string value. Change-Id: I2a2ccba78246175b2845a237679d6cebe881e83b Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>