Update of /cvsroot/easycalc/easycalc
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv30082
Modified Files:
lstedit.c
Log Message:
Bug fix: List Editor was crashing due to freeing the wrong list.
Index: lstedit.c
===================================================================
RCS file: /cvsroot/easycalc/easycalc/lstedit.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** lstedit.c 12 Sep 2006 19:40:55 -0000 1.16
--- lstedit.c 9 Oct 2006 19:09:14 -0000 1.17
***************
*** 845,849 ****
for (i=row;i<loadedList[col-1]->size;i++)
lst->item[i+1] = loadedList[col-1]->item[i];
- /* list_delete(loadedList[col-1]); */
oldlst = loadedList[col-1];
loadedList[col-1] = lst;
--- 845,848 ----
***************
*** 855,859 ****
}
else
! list_delete(loadedList[col-1]);
lstedit_upd_maxlines();
--- 854,858 ----
}
else
! list_delete(oldlst);
lstedit_upd_maxlines();
|