summaryrefslogtreecommitdiff
path: root/libs/rs/rsContext.cpp
diff options
context:
space:
mode:
author Alex Sakhartchouk <alexst@google.com> 2011-07-13 17:32:05 -0700
committer Alex Sakhartchouk <alexst@google.com> 2011-07-13 17:32:05 -0700
commit1bfcceaca6eb26594ab28bb68638bb480efa1879 (patch)
treebd60e3d44efe36188f7bfa3f3be541aeeb41a1d6 /libs/rs/rsContext.cpp
parent9cba686366870b3a4c69bcec0eb4200352ce481d (diff)
For the serialization context, no fifo initialization is necessary.
On shutdown it was attempting to free uninitialized memory. Change-Id: I9141be5a51253f87f21594ae38f7e653f9e69c6c
Diffstat (limited to 'libs/rs/rsContext.cpp')
-rw-r--r--libs/rs/rsContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index 44e9d892fa42..4f469e170a3a 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -340,10 +340,6 @@ Context::Context() {
Context * Context::createContext(Device *dev, const RsSurfaceConfig *sc) {
Context * rsc = new Context();
- // Temporary to avoid breaking the tools
- if (!dev) {
- return rsc;
- }
if (!rsc->initContext(dev, sc)) {
delete rsc;
return NULL;