OSDN Git Service

Avoid memory leaks when handling metadata strings
authorDavid Williams <david.williams@sonymobile.com>
Mon, 19 Nov 2012 08:52:16 +0000 (09:52 +0100)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Tue, 20 Nov 2012 20:27:56 +0000 (12:27 -0800)
commitd863eff90f2820e78da763ca5be9f942dc49675e
treeb4e343c70b5f0c15f4cdd22e2232771d8ba7c883
parent7013209cdf393b3d958ddd46ed50394349378826
Avoid memory leaks when handling metadata strings

Don't duplicate strings when retrieveing metadata from media
files. As any requests for metadata strings would pass through
the binder, this would cause the reference to the duplicate string
to be lost, causing a memory leak as the duplicate would not be
freed.

Change-Id: I2593733472b1bb589bc502b2c11080f581015bb5
media/libstagefright/StagefrightMetadataRetriever.cpp