Skip to content

Commit

Permalink
fix(example): Unity Editor hangs after exiting play mode
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jan 31, 2021
1 parent 9954a52 commit 6cc0ed1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/MediaPipe/Examples/Scripts/DemoGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public abstract class DemoGraph : MonoBehaviour, IDemoGraph<TextureFrame> {

protected virtual void OnDestroy() {
Stop();
graph = null;
gpuHelper = null;

if (stopwatch != null && stopwatch.IsRunning) {
stopwatch.Stop();
Expand Down

0 comments on commit 6cc0ed1

Please sign in to comment.