Loading src/com/android/bluetooth/opp/BluetoothOppNotification.java +8 −0 Original line number Diff line number Diff line Loading @@ -305,6 +305,8 @@ class BluetoothOppNotification { } } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; // Add the notifications for (NotificationItem item : mNotifications.values()) { Loading Loading @@ -427,6 +429,8 @@ class BluetoothOppNotification { } if (V) Log.v(TAG, "outbound: succ-" + outboundSuccNumber + " fail-" + outboundFailNumber); cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; outboundNum = outboundSuccNumber + outboundFailNumber; // create the outbound notification Loading Loading @@ -480,6 +484,8 @@ class BluetoothOppNotification { } if (V) Log.v(TAG, "inbound: succ-" + inboundSuccNumber + " fail-" + inboundFailNumber); cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; inboundNum = inboundSuccNumber + inboundFailNumber; // create the inbound notification Loading Loading @@ -552,5 +558,7 @@ class BluetoothOppNotification { mNotificationMgr.notify(id, n); } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } } src/com/android/bluetooth/opp/BluetoothOppReceiveFileInfo.java +2 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,8 @@ public class BluetoothOppReceiveFileInfo { } } finally { metadataCursor.close(); if (V) Log.v(Constants.TAG, "Freeing cursor: " + metadataCursor); metadataCursor = null; } } Loading src/com/android/bluetooth/opp/BluetoothOppReceiver.java +2 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,8 @@ public class BluetoothOppReceiver extends BroadcastReceiver { } } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } } else if (action.equals(Constants.ACTION_COMPLETE_HIDE)) { if (V) Log.v(TAG, "Receiver ACTION_COMPLETE_HIDE"); Loading src/com/android/bluetooth/opp/BluetoothOppService.java +6 −0 Original line number Diff line number Diff line Loading @@ -627,6 +627,8 @@ public class BluetoothOppService extends Service { mNotifier.updateNotification(); cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } } Loading Loading @@ -1059,6 +1061,8 @@ public class BluetoothOppService extends Service { if (V) Log.v(TAG, "Delete aborted inbound share, number = " + delNum); } cursorToFile.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursorToFile); cursorToFile = null; } // on boot : remove unconfirmed inbound shares. Loading Loading @@ -1101,6 +1105,8 @@ public class BluetoothOppService extends Service { } } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } private static class MediaScannerNotifier implements MediaScannerConnectionClient { Loading src/com/android/bluetooth/opp/BluetoothOppUtility.java +4 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,8 @@ public class BluetoothOppUtility { + info.mDestAddr); } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } else { info = null; if (V) Log.v(TAG, "BluetoothOppManager Error: not got data from db for uri:" + uri); Loading Loading @@ -171,6 +173,8 @@ public class BluetoothOppUtility { if (V) Log.d(TAG, "Uri in this batch: " + path.toString()); } metadataCursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + metadataCursor); metadataCursor = null; return uris; } Loading Loading
src/com/android/bluetooth/opp/BluetoothOppNotification.java +8 −0 Original line number Diff line number Diff line Loading @@ -305,6 +305,8 @@ class BluetoothOppNotification { } } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; // Add the notifications for (NotificationItem item : mNotifications.values()) { Loading Loading @@ -427,6 +429,8 @@ class BluetoothOppNotification { } if (V) Log.v(TAG, "outbound: succ-" + outboundSuccNumber + " fail-" + outboundFailNumber); cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; outboundNum = outboundSuccNumber + outboundFailNumber; // create the outbound notification Loading Loading @@ -480,6 +484,8 @@ class BluetoothOppNotification { } if (V) Log.v(TAG, "inbound: succ-" + inboundSuccNumber + " fail-" + inboundFailNumber); cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; inboundNum = inboundSuccNumber + inboundFailNumber; // create the inbound notification Loading Loading @@ -552,5 +558,7 @@ class BluetoothOppNotification { mNotificationMgr.notify(id, n); } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } }
src/com/android/bluetooth/opp/BluetoothOppReceiveFileInfo.java +2 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,8 @@ public class BluetoothOppReceiveFileInfo { } } finally { metadataCursor.close(); if (V) Log.v(Constants.TAG, "Freeing cursor: " + metadataCursor); metadataCursor = null; } } Loading
src/com/android/bluetooth/opp/BluetoothOppReceiver.java +2 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,8 @@ public class BluetoothOppReceiver extends BroadcastReceiver { } } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } } else if (action.equals(Constants.ACTION_COMPLETE_HIDE)) { if (V) Log.v(TAG, "Receiver ACTION_COMPLETE_HIDE"); Loading
src/com/android/bluetooth/opp/BluetoothOppService.java +6 −0 Original line number Diff line number Diff line Loading @@ -627,6 +627,8 @@ public class BluetoothOppService extends Service { mNotifier.updateNotification(); cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } } Loading Loading @@ -1059,6 +1061,8 @@ public class BluetoothOppService extends Service { if (V) Log.v(TAG, "Delete aborted inbound share, number = " + delNum); } cursorToFile.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursorToFile); cursorToFile = null; } // on boot : remove unconfirmed inbound shares. Loading Loading @@ -1101,6 +1105,8 @@ public class BluetoothOppService extends Service { } } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } private static class MediaScannerNotifier implements MediaScannerConnectionClient { Loading
src/com/android/bluetooth/opp/BluetoothOppUtility.java +4 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,8 @@ public class BluetoothOppUtility { + info.mDestAddr); } cursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + cursor); cursor = null; } else { info = null; if (V) Log.v(TAG, "BluetoothOppManager Error: not got data from db for uri:" + uri); Loading Loading @@ -171,6 +173,8 @@ public class BluetoothOppUtility { if (V) Log.d(TAG, "Uri in this batch: " + path.toString()); } metadataCursor.close(); if (V) Log.v(TAG, "Freeing cursor: " + metadataCursor); metadataCursor = null; return uris; } Loading