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)
committerDavid Svensson Fors <davidsf@axis.com>
Wed, 4 Sep 2019 14:31:53 +0000 (16:31 +0200)
commitf8d70b475cf449405aa324dcf8e6830fd12c89e6
tree7c54c6f85a4a4099c47580f17bc0a46f9724b63f
parent80a76a4b4d3bf1246e9559b341e02488120cbc5e
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