Skip to content

Commit

Permalink
fix release mainrender
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Mar 8, 2024
1 parent d50dcb5 commit 573a9d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -158,6 +158,7 @@ class GlStreamInterface(private val context: Context): OnFrameAvailableListener,
surfaceManagerPhoto.release()
surfaceManagerEncoder.release()
surfaceManager.release()
mainRender.release()
}

private fun draw() {
Expand Down
Expand Up @@ -326,6 +326,7 @@ public void stop() {
surfaceManagerPhoto.release();
surfaceManagerEncoder.release();
surfaceManager.release();
mainRender.release();
}

@Override
Expand Down

0 comments on commit 573a9d1

Please sign in to comment.