Beispiel #1
0
 void OnDestroy()
 {
     if (m_pinnedPoints != null)
     {
         m_pinnedPoints.Dispose();
     }
 }
Beispiel #2
0
 // utrils
 public static void SafeDispose <T>(ref PinnedList <T> v) where T : struct
 {
     if (v != null)
     {
         v.Dispose();
         v = null;
     }
 }