about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-01-15 02:50:02 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-01-15 02:50:02 +0000
commitab5f21f1db9de389b71d3326e5f7bb39ddaab34a (patch)
tree03f1fab9beff02771bb96fb0178354c3c800fc52 /editor
parentbc1f743694807d86246a2d4a62d85ff8fbf5ed21 (diff)
downloadnetpbm-mirror-ab5f21f1db9de389b71d3326e5f7bb39ddaab34a.tar.gz
netpbm-mirror-ab5f21f1db9de389b71d3326e5f7bb39ddaab34a.tar.xz
netpbm-mirror-ab5f21f1db9de389b71d3326e5f7bb39ddaab34a.zip
release 10.35.22
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@206 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/ppmdraw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/ppmdraw.c b/editor/ppmdraw.c
index 5a4be96b..0dd03bc9 100644
--- a/editor/ppmdraw.c
+++ b/editor/ppmdraw.c
@@ -332,9 +332,11 @@ static void
 freeScript(struct script * const scriptP) {
 
     struct commandListElt * p;
+    struct commandListElt * nextP;
 
-    for (p = scriptP->commandListHeadP; p; p = p->nextP) {
+    for (p = scriptP->commandListHeadP; p; p = nextP) {
         freeDrawCommand(p->commandP);
+        nextP = p->nextP;
         free(p);
     }