avidemux: Don't forget unmapping and unreffing buffer
authorSebastian Dröge <slomo@circular-chaos.org>
Sun, 28 Jul 2013 15:32:27 +0000 (17:32 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Sun, 28 Jul 2013 15:32:59 +0000 (17:32 +0200)
gst/avi/gstavidemux.c

index 9cf588779a89f31fa9c2808e069fa997810336ce..43a96a86a4f277f3f5e62211018de91ffaf5fbcd 100644 (file)
@@ -3758,6 +3758,7 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
             sub = NULL;
             break;
           case GST_RIFF_LIST_INFO:
+            gst_buffer_unmap (sub, &map);
             gst_buffer_resize (sub, 4, -1);
             gst_riff_parse_info (element, sub, &tags);
             if (tags) {
@@ -3769,6 +3770,8 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
               }
             }
             tags = NULL;
+            gst_buffer_unref (sub);
+            sub = NULL;
             break;
           default:
             GST_WARNING_OBJECT (avi,