CMGraphicsInfo *gInfo = (CMGraphicsInfo *)gInfoP;
int indented, indentAmt, multlines=TRUE;
- Lines *lines, *lp;
+ Lines *lines = NULL, *lp = NULL;
char buf1[128], buf2[257];
Calendar *c = gInfo->c;
Props *pr = (Props*)c->properties;
stat = query_appt_struct(c->cal_handle, list[j], appt);
if (stat != CSA_SUCCESS) {
free_appt_struct(&appt);
+ destroy_lines(lp);
return False;
}
if (showtime_set(appt)) {
if (line_counter == (maxlines - 1)) {
free_appt_struct(&appt);
+ destroy_lines(lp);
return(FALSE);
}
}
line_counter++;
if ((line_counter > maxlines) && (lines != NULL)) {
free_appt_struct(&appt);
+ destroy_lines(lp);
return(FALSE);
}
line_counter++;
if ((line_counter > maxlines) && (lines != NULL)) {
free_appt_struct(&appt);
+ destroy_lines(lp);
return(FALSE);
}
line_counter++;
if ((line_counter > maxlines) && (lines != NULL)) {
free_appt_struct(&appt);
+ destroy_lines(lp);
return(FALSE);
}
new_appt = FALSE;
}
free_appt_struct(&appt);
+ destroy_lines(lp);
return(TRUE);
}