From fad2c7236e70faf0669dde3e6cbd51986fdbc6ee Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 16 May 2013 17:10:08 +0100 Subject: major leakage --- rotord/libavexporter.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rotord/libavexporter.h') diff --git a/rotord/libavexporter.h b/rotord/libavexporter.h index d9d6f38..c5e66e3 100644 --- a/rotord/libavexporter.h +++ b/rotord/libavexporter.h @@ -224,7 +224,7 @@ namespace libav { //?? why is ffmpeg reporting fltp as the sample format??? doesn't seem to have an effect to change this though ret = avcodec_encode_audio2(c, &pkt, frame, &got_packet); if (!samples) { - free(sampleptr); + delete[] sampleptr; } if (ret < 0) { //fprintf(stderr, "Error encoding audio frame: %s\n", av_err2str(ret)); @@ -464,6 +464,8 @@ namespace libav { exit(1); } frame_count++; + + //avcodec_free_frame(&frame); } static void close_video(AVFormatContext *oc, AVStream *st) @@ -472,7 +474,7 @@ namespace libav { av_free(src_picture.data[0]); av_free(dst_picture.data[0]); av_free(frame); - //av_free(outPixels); SIGSEV here + av_free(outPixels); //SIGSEV here??? } class Exporter { -- cgit v1.2.3