Ticket #524 (confirmed bug)

Opened 2 years ago

Last modified 13 months ago

Avoid using atexit()

Reported by: takkaria Owned by:
Milestone: 3.1.3 Keywords: cleanup
Cc:

Description

A couple of places in the code currently use this -- fix them.

Attachments

Change History

Changed 14 months ago by d_m

Would an OK resolution be to move the hooks into quit() in z-util.c? It looks like main() from main.c calls quit() at the end, and it seems like most of the other points out of the game call quit().

There are some places where exit() is called directly but we should probably quit. Assuming this resolution seems OK, I'll fix those up too.

Changed 14 months ago by d_m

  • owner set to d_m
  • status changed from new to assigned

Changed 14 months ago by d_m

From IRC:

< takkaria> no, that isn't the right behaviour either < takkaria> the point here is to have alloc/dealloc functions which are called in the right places rather than exit() or quit() dealign with it < takkaria> it's part of a broader change, really, to try and init whole-game stuff and per-game stuff so at some point we can make new characters and load new savefiles while running without causing memory eaks

Changed 13 months ago by d_m

  • status changed from assigned to confirmed

Changed 13 months ago by d_m

  • owner d_m deleted
  • status changed from confirmed to assigned

Changed 13 months ago by takkaria

  • status changed from assigned to confirmed
  • milestone changed from 3.1.1 beta to 3.1.2 beta

Changed 13 months ago by magnate

  • keywords cleanup added

Add/Change #524 (Avoid using atexit())

Author



Action
as confirmed
 
Note: See TracTickets for help on using tickets.