commit | 0f809f3b794174f044366bf421f8d0c72d9afc14 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Wed Mar 13 14:31:46 2013 -0700 |
committer | Romain Guy <romainguy@google.com> | Wed Mar 13 14:32:45 2013 -0700 |
tree | d4ca14f787cf7c511f5236637b5e3edb29d4c49f | |
parent | d6c87ccde6722c7dedd05a18f30d8634893e10ee [diff] [blame] |
Prevent infinite loop when trimming the path cache Change-Id: I04b5fa498336068f997c68d8613b35a99f67adbe
diff --git a/libs/hwui/ShapeCache.h b/libs/hwui/ShapeCache.h index 58fea08..92314b0 100644 --- a/libs/hwui/ShapeCache.h +++ b/libs/hwui/ShapeCache.h
@@ -717,7 +717,9 @@ ALOGD("Shape %s deleted, size = %d", mName, size); } - glDeleteTextures(1, &texture->id); + if (texture->id) { + glDeleteTextures(1, &texture->id); + } delete texture; } }