st/prober: Improve xrt_prober_destroy

This commit is contained in:
Jakob Bornecrantz 2021-02-15 15:33:41 +00:00
parent 2c012374da
commit 78dbbec891

View file

@ -361,7 +361,8 @@ xrt_prober_list_video_devices(struct xrt_prober *xp, xrt_prober_list_video_cb cb
/*! /*!
* @copydoc xrt_prober::destroy * @copydoc xrt_prober::destroy
* *
* Helper function for @ref xrt_prober::destroy. * Helper for calling through the function pointer: does a null check and sets
* xp_ptr to null if freed.
* *
* @public @memberof xrt_prober * @public @memberof xrt_prober
*/ */
@ -374,6 +375,7 @@ xrt_prober_destroy(struct xrt_prober **xp_ptr)
} }
xp->destroy(xp_ptr); xp->destroy(xp_ptr);
*xp_ptr = NULL;
} }
/*! /*!