Free memory associated with structure used for appointments notification.
This commit is contained in:
parent
3ece481999
commit
bc44508a10
@ -1,3 +1,10 @@
|
||||
2009-06-21 Frederic Culot <frederic@culot.org>
|
||||
|
||||
* src/notify.c (notify_free_app): new function
|
||||
|
||||
* src/utils.c (exit_calcurse): free memory associated with
|
||||
structure used for appointments notification
|
||||
|
||||
2009-06-20 Frederic Culot <frederic@culot.org>
|
||||
|
||||
* src/custom.c (set_confwin_attr): new function
|
||||
|
12
src/notify.c
12
src/notify.c
@ -1,4 +1,4 @@
|
||||
/* $calcurse: notify.c,v 1.36 2009/01/22 18:11:57 culot Exp $ */
|
||||
/* $calcurse: notify.c,v 1.37 2009/06/21 14:42:49 culot Exp $ */
|
||||
|
||||
/*
|
||||
* Calcurse - text-based organizer
|
||||
@ -112,6 +112,16 @@ notify_init_bar (void)
|
||||
extract_aptsfile ();
|
||||
}
|
||||
|
||||
/*
|
||||
* Free memory associated with the notify_app structure.
|
||||
*/
|
||||
void
|
||||
notify_free_app (void)
|
||||
{
|
||||
if (notify_app.got_app && notify_app.txt)
|
||||
mem_free (notify_app.txt);
|
||||
}
|
||||
|
||||
/* Stop the notify-bar main thread. */
|
||||
void
|
||||
notify_stop_main_thread (void)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $calcurse: notify.h,v 1.16 2009/01/02 22:28:54 culot Exp $ */
|
||||
/* $calcurse: notify.h,v 1.17 2009/06/21 14:42:49 culot Exp $ */
|
||||
|
||||
/*
|
||||
* Calcurse - text-based organizer
|
||||
@ -55,6 +55,7 @@ struct notify_app_s
|
||||
int notify_bar (void);
|
||||
void notify_init_vars (void);
|
||||
void notify_init_bar (void);
|
||||
void notify_free_app (void);
|
||||
void notify_start_main_thread (void);
|
||||
void notify_stop_main_thread (void);
|
||||
void notify_reinit_bar (void);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $calcurse: utils.c,v 1.68 2009/01/24 14:44:25 culot Exp $ */
|
||||
/* $calcurse: utils.c,v 1.69 2009/06/21 14:42:50 culot Exp $ */
|
||||
|
||||
/*
|
||||
* Calcurse - text-based organizer
|
||||
@ -53,6 +53,7 @@ exit_calcurse (int status)
|
||||
{
|
||||
if (ui_mode == UI_CURSES)
|
||||
{
|
||||
notify_stop_main_thread ();
|
||||
clear ();
|
||||
refresh ();
|
||||
endwin ();
|
||||
@ -70,6 +71,7 @@ exit_calcurse (int status)
|
||||
recur_apoint_free_bkp (ERASE_FORCE);
|
||||
recur_event_free_bkp (ERASE_FORCE);
|
||||
todo_free_list ();
|
||||
notify_free_app ();
|
||||
keys_free ();
|
||||
mem_stats ();
|
||||
exit (status);
|
||||
|
Loading…
x
Reference in New Issue
Block a user