staging: android: fix a possible memory leak

Thanks to Cl3Kener