rtpj2kpay: Fix buffer memory leak
authorPierre Lamot <pierre.lamot@openwide.fr>
Wed, 25 May 2016 15:11:13 +0000 (17:11 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 27 May 2016 11:46:23 +0000 (12:46 +0100)
Input buffer memory was not unmapped

https://bugzilla.gnome.org/show_bug.cgi?id=766870

gst/rtp/gstrtpj2kpay.c

index d30be31..3949ccf 100644 (file)
@@ -527,6 +527,7 @@ gst_rtp_j2k_pay_handle_buffer (GstRTPBasePayload * basepayload,
     offset = pos;
   } while (offset < map.size);
 
+  gst_buffer_unmap (buffer, &map);
   gst_buffer_unref (buffer);
 
   /* push the whole buffer list at once */