Changeset 188

Show
Ignore:
Timestamp:
11/22/07 16:26:34 (9 months ago)
Author:
sip
Message:

MP4 structured not cleaned on hangup (issue #19)[FIXED]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • app_mp4/app_mp4.c

    r187 r188  
    510510 
    511511                        /* if we have been hang up */ 
    512                         if (ms < 0) { 
    513                                 /* Unlock module*/ 
    514                                 ast_module_user_remove(u); 
     512                        if (ms < 0)  
    515513                                /* exit */ 
    516                                 return -1; 
    517                         } 
     514                                goto end; 
    518515 
    519516                        /* if we have received something on the channel */ 
     
    523520 
    524521                                /* If failed */ 
    525                                 if (!f) { 
    526                                         /* Unlock module*/ 
    527                                         ast_module_user_remove(u); 
     522                                if (!f)  
    528523                                        /* exit */ 
    529                                         return -1; 
    530                                 } 
     524                                        goto end; 
    531525 
    532526                                /* If it's a dtmf */ 
     
    546540                                                ast_frfree(f); 
    547541                                                /* exit */ 
    548                                                 return res
     542                                                goto end
    549543                                        } 
    550544                                }  
     
    582576        } 
    583577 
     578end: 
    584579        ast_log(LOG_DEBUG, "<app_mp4"); 
    585580 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software