seed r61 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r61 - trunk/libseed
- Date: Sun, 2 Nov 2008 22:38:30 +0000 (UTC)
Author: racarr
Date: Sun Nov 2 22:38:05 2008
New Revision: 61
URL: http://svn.gnome.org/viewvc/seed?rev=61&view=rev
Log:
Fix potential segfault.
Modified:
trunk/libseed/seed-types.c
Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c (original)
+++ trunk/libseed/seed-types.c Sun Nov 2 22:38:05 2008
@@ -250,7 +250,7 @@
required_gtype =
g_registered_type_info_get_g_type(
(GIRegisteredTypeInfo *) interface);
- if (!g_type_is_a(G_OBJECT_TYPE (gobject),
+ if (!gobject || !g_type_is_a(G_OBJECT_TYPE (gobject),
required_gtype))
{
return FALSE;
@@ -331,7 +331,7 @@
interface = g_type_info_get_interface(type_info);
interface_type = g_base_info_get_type(interface);
-
+
if (interface_type == GI_INFO_TYPE_OBJECT ||
interface_type == GI_INFO_TYPE_INTERFACE)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]