Merge "libgui: Propagate error by clearing sp<GB>"

This commit is contained in:
Dan Stoza 2015-06-01 21:59:20 +00:00 committed by Gerrit Code Review
commit 8980e0ccd4
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ public:
if (result == NO_ERROR) {
graphicBuffer = new GraphicBuffer();
result = reply.read(*graphicBuffer);
if (result != NO_ERROR) {
graphicBuffer.clear();
}
// reply.readStrongBinder();
// here we don't even have to read the BufferReference from
// the parcel, it'll die with the parcel.