Browse Source

Fixed mplayer.Kill crash

Nikita Tsukanov 5 years ago
parent
commit
a496c6646c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      samples/interop/NativeEmbedSample/EmbedSample.cs

+ 1 - 1
samples/interop/NativeEmbedSample/EmbedSample.cs

@@ -42,7 +42,7 @@ namespace NativeEmbedSample
 
         void DestroyLinux(IPlatformHandle handle)
         {
-            _mplayer.Kill();
+            _mplayer?.Kill();
             _mplayer = null;
             base.DestroyNativeControlCore(handle);
         }