diff options
author | Jason Sams <rjsams@android.com> | 2010-11-09 17:11:40 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-11-09 17:11:40 -0800 |
commit | 06d69de78845659e6904ae4964e606a7f1a6a4a8 (patch) | |
tree | 15a497321026614c8338e40305b32e43b0a0ff31 /libs/rs | |
parent | 641b0628cd9d8be001fa445771d460b47ba1f6cb (diff) | |
download | frameworks_base-06d69de78845659e6904ae4964e606a7f1a6a4a8.zip frameworks_base-06d69de78845659e6904ae4964e606a7f1a6a4a8.tar.gz frameworks_base-06d69de78845659e6904ae4964e606a7f1a6a4a8.tar.bz2 |
Continue error check improvements and write some docs.
Change-Id: I345b08490da21d9ee715ff1ddc80c1a816b579f4
Diffstat (limited to 'libs/rs')
-rw-r--r-- | libs/rs/rsAllocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp index b74fa8e..28078fc 100644 --- a/libs/rs/rsAllocation.cpp +++ b/libs/rs/rsAllocation.cpp @@ -869,6 +869,8 @@ RsAllocation rsaAllocationCreateFromBitmap(RsContext con, uint32_t w, uint32_t h } } else { rsc->setError(RS_ERROR_BAD_VALUE, "Unsupported bitmap format"); + delete texAlloc; + return NULL; } return texAlloc; |