Android 4.0.1 release 1.2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk7ZPDYACgkQ6K0/gZqxDnhQ8QCfX2FgOQdaSyMdawqK1tqpUgEw
fkcAoIHfLEvPOpqYFuroGW7krjERHd0Y
=rJM3
-----END PGP SIGNATURE-----
Fix cleanup
(cherry-picked from ics-mr1)

The code was attempting to null out a struct member after freeing
the struct.

Also, changed the order of directory permission tests so that
writable comes first.  Somehow "dalvik-cache directory not
writable" seems more direct than "not readable", since the code
isn't generally interested in reading the directory.

Bug 5549907

Change-Id: If737ab822b356aae98e47292d21946e33a04342b
1 file changed