Skip to content

Commit

Permalink
[Unity] Fix exception when attaching debugger to Unity
Browse files Browse the repository at this point in the history
Fixes: #344
  • Loading branch information
lakulish committed Apr 26, 2024
1 parent 627f38c commit c565da2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ private void OnDestroy()

~SteamAudioSource()
{
mThis.Free();
if (mThis.IsAllocated)
{
mThis.Free();
}
}

private void OnEnable()
Expand Down

0 comments on commit c565da2

Please sign in to comment.