I sent this before with the files attached.  I've removed them and put them
on my site at http://bill.nalens.com/programs/explode.zip
Hopefully Mark will see this message and delete the other one waiting for
moderator approval :-)



I've split up explode so I can use it in the viewer as a library.  I've
attached the files in case you'd like to update the main files.

I'd attach a diff, but I'm diff deficient :-)

I updated the files to compile on Windows.

I also made a change to the <!-- tag to be <! -- so the wxHtml parser
correctly ignores the tag.

I also made a fix to a couple of memory leaks (at least I think they are
leaks).
The first is in AddRecord where we malloc the new record, but if the index
is found in the list, we return without free'ing the object.  I think the
loop should be
  for (ptr = records;  ptr != NULL;  ptr = ptr->next) {
      if (ptr->index == index) {
        free(newr);
        return;
      }
  }

Then I think the end part should clean up the records and the document like
so:
  while (records != NULL) {
    RecordNode *ptr;
    ptr = records;
    records = ptr->next;
    free(ptr);
  }

  plkr_CloseDoc(doc);

  free(doc);

If you think these changes are acceptable, I'll send in my VC project files
for other Windows users to use.

Bill



_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to