mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-01 11:28:28 +00:00
st/prober: Improve xrt_prober_destroy
This commit is contained in:
parent
2c012374da
commit
78dbbec891
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in a new issue