allow garbage collection to free handlers

This commit is contained in:
fkloft
2014-01-20 22:37:37 +01:00
parent 787a68ac8d
commit 81aa873e41
2 changed files with 11 additions and 1 deletions

View File

@ -253,6 +253,8 @@ public class IITC_FileManager {
@Override
public void onActivityResult(int resultCode, Intent data) {
mIitc.deleteResponseHandler(this); // to enable garbage collection
try {
if (resultCode == Activity.RESULT_OK && data != null) {
Uri uri = data.getData();
@ -270,8 +272,8 @@ public class IITC_FileManager {
{
encoder.write(c);
}
encoder.close();
mStreamOut.write("');".getBytes());
}