blah wrote: > > I tried that, made very nasty things happen. > I had: > if (ch->char_specials.mname) > free(ch->char_specials.mname); > etc... > > Crashola's out the bunghole... Sure. if ( ch->char_specials.mname ) free( ch->char_specials.mname ); ch->char_specials.mname = NULL; } free() only dispose the memory allocated, but the pointer remains pointing to who knows where. :) -- Leonardo Herrera L. mailto:leherrer@entelchile.net http://www.geocities.com/TimesSquare/Castle/4515/ "Me voy a subai, me voy a costai, me voy a tapai y me voy a hacei tuto." -- Ruy +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST