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/742>
This commit is contained in:
Sebastian Dröge 2021-01-31 12:12:09 +02:00
parent ec83432140
commit d7b0b6b6db

View file

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