Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 493bcdda authored by Nicolas Roard's avatar Nicolas Roard
Browse files

Fix memory leak with layers.

This fix bug http://b/2394813
This is a two-parts CL (needs C++ modifs)
parent 9521e257
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5867,7 +5867,7 @@ public class WebView extends AbsoluteLayout
                        // updates is a C++ pointer to a Vector of
                        // AnimationValues that we apply to the layers.
                        // The Vector is deallocated in nativeUpdateLayers().
                        nativeUpdateLayers(mRootLayer, updates);
                        nativeUpdateLayers(updates);
                    }
                    invalidate();
                    break;
@@ -6618,7 +6618,7 @@ public class WebView extends AbsoluteLayout
    private native void     nativeDestroyLayer(int layer);
    private native int      nativeEvaluateLayersAnimations(int layer);
    private native boolean  nativeLayersHaveAnimations(int layer);
    private native void     nativeUpdateLayers(int layer, int updates);
    private native void     nativeUpdateLayers(int updates);
    private native void     nativeDrawLayers(int layer,
                                             int scrollX, int scrollY,
                                             int width, int height,