Fix a null dereference.
Change-Id: I7224c3368ff414620062bc08b80a6a94d55d7931
This commit is contained in:
parent
e1e3d27854
commit
c78a0c1733
@ -95,7 +95,7 @@ status_t BnSurfaceComposerClient::onTransact(
|
||||
status_t result = createSurface(name, w, h, format, flags,
|
||||
&handle, &gbp);
|
||||
reply->writeStrongBinder(handle);
|
||||
reply->writeStrongBinder(gbp->asBinder());
|
||||
reply->writeStrongBinder(gbp != NULL ? gbp->asBinder() : NULL);
|
||||
reply->writeInt32(result);
|
||||
return NO_ERROR;
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user