diff options
| author | volzhs | 2017-05-12 14:24:14 +0900 |
|---|---|---|
| committer | volzhs | 2017-05-12 14:44:37 +0900 |
| commit | 9d33f510665718c5878dd34d3c00e8afa66ea800 (patch) | |
| tree | a5006d4ab1a835b0c51e69b3ce6693aaf9722f12 /scene/gui/file_dialog.cpp | |
| parent | 5a6ccce97d350011b599e793cea95aa4e7899395 (diff) | |
| download | godot-9d33f510665718c5878dd34d3c00e8afa66ea800.tar.gz godot-9d33f510665718c5878dd34d3c00e8afa66ea800.tar.zst godot-9d33f510665718c5878dd34d3c00e8afa66ea800.zip | |
Fix possible memory leak for Android
/godot_dev/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java:575: Error: The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing to .getApplicationContext() [WifiManagerLeak]
mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "WifiManagerLeak":
On versions prior to Android N (24), initializing the WifiManager via
Context#getSystemService can cause a memory leak if the context is not the
application context. Change context.getSystemService(...) to
context.getApplicationContext().getSystemService(...).
1 errors, 0 warnings
Diffstat (limited to 'scene/gui/file_dialog.cpp')
0 files changed, 0 insertions, 0 deletions
