示例#1
0
 public void Clear()
 {
     if (_ptr != null)
     {
         Globals.free(_ptr);
     }
     _ptr     = null;
     _buffPos = 0;
 }
示例#2
0
 public static void free_itinerary(Itinerary it)
 {
     if (String.IsNullOrEmpty(it.signame) == false)
     {
         Globals.free(it.signame);
     }
     if (String.IsNullOrEmpty(it.endsig) == false)
     {
         Globals.free(it.endsig);
     }
     if (String.IsNullOrEmpty(it.name) == false)
     {
         Globals.free(it.name);
     }
     if (it.sw != null)
     {
         Globals.free(it.sw);
     }
     Globals.free(it);
 }