Changeset 1084:e6e543dd8242 in mediastreamer2


Ignore:
Timestamp:
Feb 21, 2011 11:47:58 PM (2 years ago)
Author:
laurent
Branch:
default
Message:

bug fix : dealloc msv4m2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/msv4m2.m

    r1082 r1084  
    8484 
    8585-(void) dealloc { 
    86     [super dealloc]; 
    87          
    8886        [self stop]; 
    8987         
    90         //if(session) 
    91         //      [session release]; 
    92          
    93         //if(device) 
    94         //      [device release]; 
     88        if(session) 
     89                [session release]; 
     90         
     91        if(device) 
     92                [device release]; 
    9593                 
    96         //if(input) 
    97         //      [input release]; 
    98          
    99         //if(output) 
    100         //      [output release]; 
     94        if(input) 
     95                [input release]; 
     96         
     97        if(output) 
     98                [output release]; 
    10199         
    102100        flushq(&rq,0); 
    103101        ms_mutex_destroy(&mutex); 
     102 
     103        [super dealloc]; 
    104104} 
    105105 
     
    263263static void v4m_uninit(MSFilter *f){ 
    264264        printf("v4m_uninit\n"); 
    265         NSAutoreleasePool* myPool = [[NSAutoreleasePool alloc] init]; 
     265        //NSAutoreleasePool* myPool = [[NSAutoreleasePool alloc] init]; 
    266266        v4mState *s=(v4mState*)f->data; 
    267267        v4m_stop(f,NULL); 
     
    270270        [s->webcam release]; 
    271271        ms_free(s); 
    272         [myPool release]; 
     272        //[myPool release]; 
    273273} 
    274274 
Note: See TracChangeset for help on using the changeset viewer.