mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
make check: add check for enum type class unrefs in gst_deinit() too
Just because we can really.
This commit is contained in:
parent
3afa91d7aa
commit
d628988e0a
2 changed files with 24 additions and 0 deletions
15
Makefile.am
15
Makefile.am
|
@ -117,6 +117,21 @@ check-enum-gettypes: $(top_builddir)/gst/gstenumtypes.h
|
||||||
echo " g_type_class_ref ($$f ());"; \
|
echo " g_type_class_ref ($$f ());"; \
|
||||||
done; \
|
done; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
|
fi; \
|
||||||
|
echo 'Checking if all enum and flag _get_type() funcs are deinited in gst_deinit()'; \
|
||||||
|
MISSING_FUNCS=''; \
|
||||||
|
for f in $$FUNCS; do \
|
||||||
|
INIT_LINE=`grep $$f $(top_srcdir)/gst/*.c | grep g_type_class_unref`; \
|
||||||
|
if test "x$$INIT_LINE" = "x"; then \
|
||||||
|
MISSING_FUNCS="$$MISSING_FUNCS $$f"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
if test "x$$MISSING_FUNCS" != "x"; then \
|
||||||
|
echo "FIXME: please add to the following to gst/gst.c gst_deinit():"; \
|
||||||
|
for f in $$MISSING_FUNCS; do \
|
||||||
|
echo " g_type_class_unref (g_type_class_peek ($$f ()));"; \
|
||||||
|
done; \
|
||||||
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
include $(top_srcdir)/common/coverage/lcov.mak
|
include $(top_srcdir)/common/coverage/lcov.mak
|
||||||
|
|
|
@ -1379,9 +1379,11 @@ gst_deinit (void)
|
||||||
g_type_class_unref (g_type_class_peek (gst_bin_flags_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_bin_flags_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_buffer_flag_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_buffer_flag_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_buffer_copy_flags_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_buffer_copy_flags_get_type ()));
|
||||||
|
g_type_class_unref (g_type_class_peek (gst_buffer_list_item_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_bus_flags_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_bus_flags_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_bus_sync_reply_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_bus_sync_reply_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_caps_flags_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_caps_flags_get_type ()));
|
||||||
|
g_type_class_unref (g_type_class_peek (gst_clock_type_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_clock_return_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_clock_return_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_clock_entry_type_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_clock_entry_type_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_clock_flags_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_clock_flags_get_type ()));
|
||||||
|
@ -1392,8 +1394,15 @@ gst_deinit (void)
|
||||||
g_type_class_unref (g_type_class_peek (gst_element_flags_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_element_flags_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_core_error_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_core_error_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_library_error_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_library_error_get_type ()));
|
||||||
|
g_type_class_unref (g_type_class_peek (gst_plugin_dependency_flags_get_type
|
||||||
|
()));
|
||||||
|
g_type_class_unref (g_type_class_peek (gst_parse_flags_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_resource_error_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_resource_error_get_type ()));
|
||||||
|
g_type_class_unref (g_type_class_peek (gst_search_mode_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_stream_error_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_stream_error_get_type ()));
|
||||||
|
g_type_class_unref (g_type_class_peek (gst_stream_status_type_get_type ()));
|
||||||
|
g_type_class_unref (g_type_class_peek (gst_structure_change_type_get_type
|
||||||
|
()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_event_type_flags_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_event_type_flags_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_event_type_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_event_type_get_type ()));
|
||||||
g_type_class_unref (g_type_class_peek (gst_seek_type_get_type ()));
|
g_type_class_unref (g_type_class_peek (gst_seek_type_get_type ()));
|
||||||
|
|
Loading…
Reference in a new issue