From bc44508a10434b18ca3d231d58882995a4d6d2ad Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sun, 21 Jun 2009 14:42:49 +0000 Subject: Free memory associated with structure used for appointments notification. --- src/notify.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/notify.c') diff --git a/src/notify.c b/src/notify.c index 8eee0d5..32ea3e7 100755 --- a/src/notify.c +++ b/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) -- cgit v1.2.3-54-g00ecf