diff options
| author | volzhs | 2017-05-12 14:24:14 +0900 |
|---|---|---|
| committer | volzhs | 2017-05-12 14:38:15 +0900 |
| commit | a6c74136b5839e0c0f8fa86b718cfac628887a9c (patch) | |
| tree | bcbd268034dc6431f729ed5819b8203c78759840 /core/command_queue_mt.cpp | |
| parent | 17619b54206195a63d4ba83c998b3263a83d6060 (diff) | |
| download | godot-a6c74136b5839e0c0f8fa86b718cfac628887a9c.tar.gz godot-a6c74136b5839e0c0f8fa86b718cfac628887a9c.tar.zst godot-a6c74136b5839e0c0f8fa86b718cfac628887a9c.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 'core/command_queue_mt.cpp')
0 files changed, 0 insertions, 0 deletions
