Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv19366/apps

Modified Files:
        app_record.c 
Log Message:
issue #5787


Index: app_record.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_record.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- app_record.c        8 Nov 2005 04:48:00 -0000       1.46
+++ app_record.c        21 Nov 2005 02:01:36 -0000      1.47
@@ -277,6 +277,7 @@
                        
                        if (res) {
                                ast_log(LOG_WARNING, "Problem writing frame\n");
+                               ast_frfree(f);
                                break;
                        }
                        
@@ -295,16 +296,15 @@
                                        break;
                                }
                        }
-               }
-               if (f->frametype == AST_FRAME_VIDEO) {
+               } else if (f->frametype == AST_FRAME_VIDEO) {
                        res = ast_writestream(s, f);
                        
                        if (res) {
                                ast_log(LOG_WARNING, "Problem writing frame\n");
+                               ast_frfree(f);
                                break;
                        }
-               }
-               if ((f->frametype == AST_FRAME_DTMF) &&
+               } else if ((f->frametype == AST_FRAME_DTMF) &&
                    (f->subclass == terminator)) {
                        ast_frfree(f);
                        break;

_______________________________________________
Asterisk-Cvs mailing list
Asterisk-Cvs@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to