dia r4027 - in trunk: . lib



Author: sdteffen
Date: Fri May 16 16:40:13 2008
New Revision: 4027
URL: http://svn.gnome.org/viewvc/dia?rev=4027&view=rev

Log:
prevent crash when shapes could not be parsed
correctly. Fixes bug #533459



Modified:
   trunk/ChangeLog
   trunk/lib/propobject.c

Modified: trunk/lib/propobject.c
==============================================================================
--- trunk/lib/propobject.c	(original)
+++ trunk/lib/propobject.c	Fri May 16 16:40:13 2008
@@ -44,6 +44,8 @@
   if (!obj->ops->describe_props) return NULL;
 
   pdesc = obj->ops->describe_props((DiaObject *)obj); /* Yes... */
+  if (!pdesc) return NULL;
+
   if (pdesc[0].quark != 0) return pdesc;
 
   prop_desc_list_calculate_quarks((PropDescription *)pdesc); /* Yes again... */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]