[Circle] Fix to Obuild Problems

From: Ground Zero Enterprises (zero@baker.cnw.com)
Date: 11/26/96


Hmm, seems I lept to the list too fast, I compared the code to start the 
editing with that of the code to edit one's description and noticed it 
wasn't assigning the just freed object to null so everywhere before the 
editor starts that loosk like this:

if (blah->blah.blah)
  free(blah->blah.blah);
ch->desc->str = &(blah->blah.blah);

it should be this instead:

if (blah->blah.blah) {
  free(blah->blah.blah);
  blah->blah.blah = NULL;
}
ch->desc->str = &(blah->blah.blah);


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST