Backport of "miniobject: free qdata array when the last qdata is removed" into 1.16
Backport of !274 (merged) "miniobject: free qdata array when the last qdata is removed".
Commits:
- f8d70b47 miniobject: free qdata array when the last qdata is removed