Jeff Brown 582763ae4e Ensure Binder finalizer handles partially initialized instances.
If the Binder is allocated but its constructor does not run for some
reason, then Binder.init() will not be called.  Since the object was
allocated, it is still eligible for finalization.  Eventually when
the finalizer runs and calls Binder.destroy(), it will have a NULL
binder holder pointer.  Previously this would cause Binder.destroy()
to attempt to decrement a reference count on a NULL pointer.

Now we check and ignore the binder if it does not have a valid
holder pointer.

Bug: b/2533956
Change-Id: Ifc2729b2f2abe8bceea5a0645ae0a4c1575b7846
2010-03-24 19:44:50 -07:00
..
2010-03-10 13:11:47 -05:00
2009-11-13 13:53:39 -08:00
2009-11-13 13:53:39 -08:00
2009-11-13 13:53:39 -08:00
2009-11-13 13:53:39 -08:00
2009-11-13 13:53:39 -08:00
2009-11-13 13:53:39 -08:00
2009-11-13 13:53:39 -08:00
2009-07-21 11:16:54 -07:00
2009-05-20 11:28:04 -07:00
2009-11-13 13:53:39 -08:00
2010-03-04 11:52:14 -08:00
2009-11-13 13:53:39 -08:00
2010-03-01 09:07:37 -08:00
2010-03-01 14:08:49 -08:00
2009-07-21 11:16:54 -07:00
2009-07-21 11:16:54 -07:00