miniobject: free qdata array when the last qdata is removed
authorDavid Svensson Fors <davidsf@axis.com>
Tue, 3 Sep 2019 08:38:13 +0000 (10:38 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 8 Sep 2019 19:42:59 +0000 (19:42 +0000)
commite6bd5b41935f125bf43e030dcb909c3537d33b31
treec7ee76da798697e394cc53489c21c6c842ec95b4
parent94ba1cea88788fd3ad72fadcc2ceb7884ed6df50
miniobject: free qdata array when the last qdata is removed

In cases with many long-lived buffers that have qdata only very
briefly, the memory overhead of keeping an array of 16 GstQData
structs for each buffer can be significant. We free the array when
the last qdata is removed, like it was done in 1.14.

Fixes #436
gst/gstminiobject.c