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

Commit 4f1fded1 authored by Oscar Rydhé's avatar Oscar Rydhé Committed by Steve Kondik
Browse files

Stop thread before deleting object reference

If setPeriodicCapture is called Visualizer will start a thread
and do periodic callbacks. When native_finalize is called the
reference to the class is deleted. If a callback happens after
this the reference is no longer valid and when used from the
callback method the vm crashes. With this patch the thread will
be terminated before deleting the reference.

Please note that this change depends on the commit in
platform/frameworks/av with the same Change-Id.

Change-Id: I30f331437ddad05f8d52c244cdbecb1859a0abd2
parent 77263a6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment