info: Don't leak log function user_data if the debug system is compiled out

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/743>
This commit is contained in:
Sebastian Dröge 2021-01-31 12:12:09 +02:00 committed by GStreamer Merge Bot
parent d5150b7c54
commit f90e9a71dd

View file

@ -2359,6 +2359,8 @@ void
gst_debug_add_log_function (GstLogFunction func, gpointer user_data,
GDestroyNotify notify)
{
if (notify)
notify (user_data);
}
guint