gibaseinfo: Fix compiler warnings

g_slice_free complains when you pass it a pointer of a different type
than it was expecting, like it should.

https://bugzilla.gnome.org/show_bug.cgi?id=665249
This commit is contained in:
Jasper St. Pierre 2011-11-28 04:56:58 -05:00
parent acd55584c2
commit fd0625aa6e

View File

@ -254,7 +254,7 @@ g_base_info_unref (GIBaseInfo *info)
g_object_unref (rinfo->repository); g_object_unref (rinfo->repository);
if (rinfo->type == GI_INFO_TYPE_UNRESOLVED) if (rinfo->type == GI_INFO_TYPE_UNRESOLVED)
g_slice_free (GIUnresolvedInfo, rinfo); g_slice_free (GIUnresolvedInfo, (GIUnresolvedInfo *) rinfo);
else else
g_slice_free (GIRealInfo, rinfo); g_slice_free (GIRealInfo, rinfo);
} }