* girepository/ginfo.c: Add some assertions regarding
refcounts, just to be sure.
* giscanner/glibtransformer.py: Blacklist a few more
odd Gio methods.
svn path=/trunk/; revision=537
void
g_base_info_unref (GIBaseInfo *info)
{
+ g_assert (info->ref_count > 0);
info->ref_count--;
if (!info->ref_count)
const gchar *
g_base_info_get_name (GIBaseInfo *info)
{
+ g_assert (info->ref_count > 0);
switch (info->type)
{
case GI_INFO_TYPE_FUNCTION:
case GI_INFO_TYPE_TYPE:
default: ;
+ g_assert_not_reached ();
/* unnamed */
}
const gchar *
g_base_info_get_namespace (GIBaseInfo *info)
{
- Header *header = (Header *)info->typelib->data;
+ Header *header = (Header *)info->typelib->data;
+
+ g_assert (info->ref_count > 0);
if (info->type == GI_INFO_TYPE_UNRESOLVED)
{
SYMBOL_BLACKLIST = [
# These ones break GError conventions
'g_simple_async_result_new_from_error',
+ 'g_simple_async_result_set_from_error',
+ 'g_simple_async_result_propagate_error',
'gtk_print_operation_get_error',
]