Skip to content

Commit

Permalink
fix(example): stop disposing gpu_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Feb 6, 2021
1 parent 85c77aa commit 94deaba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Assets/MediaPipe/Examples/Scripts/DemoGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ protected virtual void OnDestroy() {
graph.Dispose();
graph = null;
}
if (gpuHelper != null) {
gpuHelper.Dispose();
gpuHelper = null;
}

gpuHelper = null;

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

0 comments on commit 94deaba

Please sign in to comment.