Memory leak in android.os.PowerManager

I have identified a memory leak, with the following report from Eclipse Memory Analyzer

mBuffer android.graphics.Bitmap
'- mDrawBitmap com.bilickib.android.charts.PieChartView
   '- pieChartView mine.PieChartFragment
      '- mCurrentPrimaryItem com.bilickib.android.charts.PieChartFragmentPagerAdapter
         '- pieChartFragmentPagerAdapter com.bilickib.android.charts.PieChartHolder
            '- pieChartHolder com.bilickib.android.charts.Activity
               '- mContext android.os.PowerManager
                  '- mPowerManager android.view.ViewRootImpl
                     '- this$0 android.view.ViewRootImpl$WindowInputEventReceiver
                        '- referent java.lang.ref.FinalizerReference

      

I don't use PowerManager at all in my code. How could he reference my class? The PieChartView has a large bitmap and is causing a memory leak for me.

edit: I am observing an issue on android 4.4.2 device. Checking the Android 4.4.3 change log, I see Power Manager display wakelock fix

, but I cannot find more details on what was fixed and the error symptoms.

+3
performance android memory-leaks powermanager android-powermanager


source to share


No one has answered this question yet

Check out similar questions:

3044
Making a memory leak with Java
1207
Strange memory issue when loading image into Bitmap object
1146
performSelector may leak because its selector is unknown
1042
The result was a leak of the window that was originally added
22
Clueless About (Possibly) Android Memory Leak
18
ClassLoader memory leak
3
how to find the class causing the memory leak?
1
Potential memory leak in a bitmap obtained with heap analysis tools, but without the bitmaps used by the application
1
Samsung Note 3: Memory activity memory after pressing side SPen button
0
Android memory leak - activity and view



All Articles
Loading...
X
Show
Funny
Dev
Pics