OSDN Git Service

DO NOT MERGE Fix finalizer ordering/double-free issue
authorJohn Reck <jreck@google.com>
Fri, 7 Nov 2014 18:33:36 +0000 (10:33 -0800)
committerJohn Reck <jreck@google.com>
Fri, 7 Nov 2014 21:33:40 +0000 (21:33 +0000)
commit050a8a050de04bd0098cde8fdf665a7202929ee0
tree44d93aa15fc39a706adc1643f6c53f9f983e7839
parent10a08abd8f9249f66f73070955c2f3f09d45598b
DO NOT MERGE Fix finalizer ordering/double-free issue

Bug: 18289984

If Surface:finalize() happens after HwuiContext:finalize()
it would try to manipulate a destroyed object. However, as
Surface:finalize() always calls HwuiContext:destroy() this
can be fixed by simply getting rid of HwuiContext's finalizer

Change-Id: I7c912214417ab32891b1c58d045c9721e5f01965
(cherry picked from commit c298f9c9170b9e8721cfb616f784ec22734f22f4)
core/java/android/view/Surface.java