How is memory deallocated for nvquery

deepstream 6.0 and earlier.

Deepstream 5.0 and 6.0 provide the following functions for getting information about the batch size and number of streams: NVIDIA DeepStream SDK API Reference: Query Functions

The new function returns a pointer to a GstQuery:
GstQuery * gst_nvquery_batch_size_new (void).

I assume this memory is on the heap. How should we be deallocating this memory? Should we be calling free or does something else free the memory?

There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

It depends on how you use the query. If you use it as normal way in gstreamer GstQuery, you don’t need to care about the release, gstreamer core will handle it. If you just create it for a test, you needto unref it for release.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.