1 | /* |
1 | /* |
2 | * main.C: Initialisation routine. |
2 | * main.C: Initialisation routine. |
3 | * Rights to this code are documented in doc/pod/license.pod. |
3 | * Rights to this code are documented in doc/pod/license.pod. |
4 | */ |
4 | */ |
5 | |
5 | |
6 | static char const rcsid[] = "$Id: main.C,v 1.5 2007/08/28 17:08:12 pippijn Exp $"; |
6 | static char const rcsid[] = "$Id: main.C,v 1.6 2007/08/28 22:18:31 pippijn Exp $"; |
7 | |
7 | |
8 | #include "atheme.h" |
8 | #include "atheme.h" |
9 | #include <ermyth/database.h> |
9 | #include <ermyth/database.h> |
10 | #include <ermyth/module.h> |
10 | #include <ermyth/module.h> |
11 | #include <account/kline.h> |
11 | #include <account/kline.h> |
… | |
… | |
335 | slog (LG_INFO, "main(): shutting down"); |
335 | slog (LG_INFO, "main(): shutting down"); |
336 | |
336 | |
337 | /* free used memory */ |
337 | /* free used memory */ |
338 | shstr::cleanup (); |
338 | shstr::cleanup (); |
339 | modules::cleanup (); |
339 | modules::cleanup (); |
|
|
340 | myuser_t::cleanup (); // XXX: this currently breaks and I don't know why |
|
|
341 | mynick_cleanup (); |
340 | mychan_cleanup (); |
342 | mychan_cleanup (); |
341 | mynick_cleanup (); |
|
|
342 | myuser_cleanup (); |
|
|
343 | delete phandler; |
343 | delete phandler; |
344 | |
344 | |
345 | log_shutdown (); |
345 | log_shutdown (); |
346 | |
346 | |
347 | return 0; |
347 | return 0; |