Waldek Hebisch <[EMAIL PROTECTED]> writes: > Martin Rubey wrote: > > > > Martin Rubey <[EMAIL PROTECTED]> writes: > > > > > Gregory Vanuxem <[EMAIL PROTECTED]> writes: > > > > > > > Hello, > > > > > > > > Here is a patchlet that needs to be reviewed. It fixes a bug in the > > > > function 'discardGraph' (src/graph/viewman/makeGraph.c). This bug is > > > > triggered when closing a view2D window [see the end of this email]. > > > > > > Super! > > > > Waldek, would you mind if I commit this? > > > > Please go on. But AFAICS the same error appears also in 'freeGraph' > (in src/graph/view2D/graph2d.c.pamphlet) -- we should corrent this > one too.
Waldek, I do not understand C. Thus, I can only patch by analogy... Greg supplied: @@ -144,7 +144,7 @@ for (j=0, pL=theGraph->listOfListsOfPoints; j<theGraph->numberOfLists; j++,pL++) free(pL->listOfPoints); - free(pL); + free(theGraph->listOfListsOfPoints); free(theGraph); } So I try to guess void freeGraph(int i) { int j; pointListStruct *llPtr; if (graphArray[i].key) { graphArray[i].key = 0; /* 0 means no graph */ for (j=0,llPtr=graphArray[i].listOfListsOfPoints; j<graphArray[i].numberOfLists; j++,llPtr++) free(llPtr->listOfPoints); - free(llPtr); + ??????????? free(xPointsArray[i].xPoint); } else { } } but I can't. Help! Martin _______________________________________________ Axiom-developer mailing list Axiom-developer@nongnu.org http://lists.nongnu.org/mailman/listinfo/axiom-developer