commit | 06d69de78845659e6904ae4964e606a7f1a6a4a8 | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Tue Nov 09 17:11:40 2010 -0800 |
committer | Jason Sams <rjsams@android.com> | Tue Nov 09 17:11:40 2010 -0800 |
tree | 15a497321026614c8338e40305b32e43b0a0ff31 | |
parent | 641b0628cd9d8be001fa445771d460b47ba1f6cb [diff] [blame] |
Continue error check improvements and write some docs. Change-Id: I345b08490da21d9ee715ff1ddc80c1a816b579f4
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 @@ } } else { rsc->setError(RS_ERROR_BAD_VALUE, "Unsupported bitmap format"); + delete texAlloc; + return NULL; } return texAlloc;