Closed andrew659 closed 7 years ago
Dear developers,
I found one potential leak of database cursor in your code.
In the getRealPathFromURI() method of the NewChatActivity class starting from line 1376:
Cursor cursor = managedQuery(contentUri, proj, null, null, null); int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); cursor.moveToFirst(); return cursor.getString(column_index);
The cursor is not closed. Is it a bug? Thanks.
I realized that the cursor is an automatically managed one. So the code should be fine.
Dear developers,
I found one potential leak of database cursor in your code.
In the getRealPathFromURI() method of the NewChatActivity class starting from line 1376:
The cursor is not closed. Is it a bug? Thanks.