]> www.infradead.org Git - users/dwmw2/ews-sync.git/commitdiff
Don't free NULL tz
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 22 Jul 2010 15:32:43 +0000 (16:32 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 22 Jul 2010 15:32:43 +0000 (16:32 +0100)
calitem_to_ical.c

index 1d56dfd04fb77821659c64e6ae085c1e9c26dc36..42dfe421956832a9f9211cbe8d0b7de26a70de5c 100644 (file)
@@ -246,7 +246,7 @@ icalcomponent *ews_calitem_to_ical(xmlNode *xml_node, const gchar *parent_id,
                }
        }
 
-       if (!parent_zone)
+       if (icaltz && !parent_zone)
                icaltimezone_free(icaltz, 1);
 
        return calcomp?:comp;