OSDN Git Service

Fix a memory leak with empty screenshot.
authorLeon Scroggins III <scroggo@google.com>
Tue, 10 Jun 2014 17:19:35 +0000 (13:19 -0400)
committerLeon Scroggins III <scroggo@google.com>
Tue, 10 Jun 2014 17:19:35 +0000 (13:19 -0400)
commite3f9800f38da3cd1d83889132952eb4ab2e8c278
treea8f0adea80cd957a608832b7436e1269eed5cc18
parentcb0462d36ffaa96efbd5e2790386849a1b504edd
Fix a memory leak with empty screenshot.

Use an autodeleter to delete the ScreenshotClient when it's not
needed.

Discovered while investigating BUG:15454296, but it does not fix
the problem.

Change-Id: I00ea81de15ddc2507d904a6c20af3c410f573dce
core/jni/android_view_SurfaceControl.cpp