Fix some compiler warnings
This is mostly adjusting to the deprecation of g_type_class_add_private
and the new type-checking in g_clear_pointer
.
This is mostly adjusting to the deprecation of g_type_class_add_private
and the new type-checking in g_clear_pointer
.