Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b2ee00d9 authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Fix null annotations in AImageDecoder

Bug: 160984428
Test: I27033454b2b8b683db727190b834b970c9732d8e

Make AImageDecoder_delete _Nullable. This matches
AImageDecoderFrameInfo_delete. It also makes sense because it just calls
"delete", and even if it didn't, it does conceptually the same thing, so
it should be safe to pass null.

Fix annotation for AImageDecoder_create*. Although the pointer must not
be null, the pointer it points to can, both as input and as output. This
change doesn't seem to affect my local build system (it doesn't warn if
I pass a pointer to a pointer which points to null without this change),
this is more accurate.

Change-Id: I0bf4e160b21169b81a377378bb65cbfd2ef809b2
parent 9b9fb394
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment