dia r4027 - in trunk: . lib
- From: sdteffen svn gnome org
- To: svn-commits-list gnome org
- Subject: dia r4027 - in trunk: . lib
- Date: Fri, 16 May 2008 17:40:13 +0100 (BST)
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]