xp_comm_proj/cine/imgcache.c
/* routine: CacheDestroy
 * purpose: Cleanup alloced memory etc..
 */
CacheDestroy
purpose: Cleanup alloced memory etc
CacheDestroy purpose : Cleanup alloced memory etc
int CacheDestroy(OMobj_id obj_id, OMevent_mask event_mask, int seq_num)
{
  CacheInfo *cache;
  cache = NULL;
  OMget_name_ptr_val( obj_id, OMstr_to_name("hidden"), (void *)&cache, 0 );
  if( cache )
    {
      int i;
      for( i = 0; i < cache->num_frames; i++ )
	DestroyPixmap( cache, i );
      memset( cache->pixmaps, 0, sizeof(cache->pixmaps) );
      free( cache );
    }
  return(1);
}
int CacheDestroy ( OMobj_id obj_id , OMevent_mask event_mask , int seq_num ) { CacheInfo * cache ; cache = NULL ; OMget_name_ptr_val ( obj_id , OMstr_to_name ( " " ) , ( void * ) & cache , 0 ) ; if ( cache ) { int i ; for ( i = 0 ; i < cache -> num_frames ; i ++ ) DestroyPixmap ( cache , i ) ; memset ( cache -> pixmaps , 0 , sizeof ( cache -> pixmaps ) ) ; free ( cache ) ; } return ( 1 ) ; }
routine: CacheDestroy
 purpose: Cleanup alloced memory etc..
routine : CacheDestroy purpose : Cleanup alloced memory etc ..
/* Clean up from previous capture
       */