packages/apps/Superuser
Révision | 4309ca2eb7e101877139dcc9b554ac084ecaa2eb (tree) |
---|---|
l'heure | 2010-05-20 14:05:03 |
Auteur | barryk <barryk at gmail> |
Commiter | barryk |
Fix DB leak
Was causing lots of
java.lang.IllegalStateException: /data/data/com.noshufou.android.su/databases/permissions.sqlite SQLiteDatabase created and never closed
warnings
@@ -74,6 +74,11 @@ public class SuRequest extends Activity { | ||
74 | 74 | default: Log.e(TAG, "Bad response from database"); break; |
75 | 75 | } |
76 | 76 | } |
77 | + @Override | |
78 | + public void onDestroy() { | |
79 | + super.onDestroy(); | |
80 | + db.close(); | |
81 | + } | |
77 | 82 | |
78 | 83 | private void prompt() { |
79 | 84 | LayoutInflater inflater = LayoutInflater.from(this); |