• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Superuser


Commit MetaInfo

Révision4309ca2eb7e101877139dcc9b554ac084ecaa2eb (tree)
l'heure2010-05-20 14:05:03
Auteurbarryk <barryk at gmail>
Commiterbarryk

Message de Log

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

Change Summary

Modification

--- a/src/com/noshufou/android/su/SuRequest.java
+++ b/src/com/noshufou/android/su/SuRequest.java
@@ -74,6 +74,11 @@ public class SuRequest extends Activity {
7474 default: Log.e(TAG, "Bad response from database"); break;
7575 }
7676 }
77+ @Override
78+ public void onDestroy() {
79+ super.onDestroy();
80+ db.close();
81+ }
7782
7883 private void prompt() {
7984 LayoutInflater inflater = LayoutInflater.from(this);