[gobject-introspection] gibaseinfo: Fix compiler warnings
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] gibaseinfo: Fix compiler warnings
- Date: Thu, 1 Dec 2011 15:55:29 +0000 (UTC)
commit b845f9dafbaa6594068a97d17a382383c294e03f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Nov 28 04:56:58 2011 -0500
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
girepository/gibaseinfo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/girepository/gibaseinfo.c b/girepository/gibaseinfo.c
index 48af5c2..ab4ce3c 100644
--- a/girepository/gibaseinfo.c
+++ b/girepository/gibaseinfo.c
@@ -254,7 +254,7 @@ g_base_info_unref (GIBaseInfo *info)
g_object_unref (rinfo->repository);
if (rinfo->type == GI_INFO_TYPE_UNRESOLVED)
- g_slice_free (GIUnresolvedInfo, rinfo);
+ g_slice_free (GIUnresolvedInfo, (GIUnresolvedInfo *) rinfo);
else
g_slice_free (GIRealInfo, rinfo);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]