summaryrefslogtreecommitdiffstats
path: root/libs/rs
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-11-09 17:11:40 -0800
committerJason Sams <rjsams@android.com>2010-11-09 17:11:40 -0800
commit06d69de78845659e6904ae4964e606a7f1a6a4a8 (patch)
tree15a497321026614c8338e40305b32e43b0a0ff31 /libs/rs
parent641b0628cd9d8be001fa445771d460b47ba1f6cb (diff)
downloadframeworks_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.cpp2
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;