aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-06-21 14:42:49 +0000
committerFrederic Culot <calcurse@culot.org>2009-06-21 14:42:49 +0000
commitbc44508a10434b18ca3d231d58882995a4d6d2ad (patch)
tree5336dd83dfc23233d2bd339bad56e6d76033bc3a /src/notify.c
parent3ece481999768f494e2f4711b8e69e9f55491fe7 (diff)
downloadcalcurse-bc44508a10434b18ca3d231d58882995a4d6d2ad.tar.gz
calcurse-bc44508a10434b18ca3d231d58882995a4d6d2ad.zip
Free memory associated with structure used for appointments notification.
Diffstat (limited to 'src/notify.c')
-rwxr-xr-xsrc/notify.c12
1 files changed, 11 insertions, 1 deletions
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)