From 309dba9950a83fc69cd895fc1a6bd52870a124a6 Mon Sep 17 00:00:00 2001
From: Frederic Culot <calcurse@culot.org>
Date: Sat, 3 May 2008 19:54:14 +0000
Subject: memory leaks fixed, thanks Tony for reporting them

---
 src/recur.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'src')

diff --git a/src/recur.c b/src/recur.c
index c862188..3188678 100755
--- a/src/recur.c
+++ b/src/recur.c
@@ -1,4 +1,4 @@
-/*	$calcurse: recur.c,v 1.35 2008/04/12 21:14:03 culot Exp $	*/
+/*	$calcurse: recur.c,v 1.36 2008/05/03 19:54:14 culot Exp $	*/
 
 /*
  * Calcurse - text-based organizer
@@ -60,7 +60,6 @@ recur_apoint_new (char *mesg, char *note, long start, long dur, char state,
       malloc (sizeof (recur_apoint_llist_node_t));
   o->rpt = (struct rpt_s *) malloc (sizeof (struct rpt_s));
   o->mesg = (char *) malloc (strlen (mesg) + 1);
-  o->exc = (struct days_s *) malloc (sizeof (struct days_s));
   strncpy (o->mesg, mesg, strlen (mesg) + 1);
   o->note = (note != NULL) ? strdup (note) : NULL;
   o->start = start;
@@ -98,7 +97,6 @@ recur_event_new (char *mesg, char *note, long day, int id, int type, int freq,
   o->rpt = (struct rpt_s *) malloc (sizeof (struct rpt_s));
   o->mesg = (char *) malloc (strlen (mesg) + 1);
   o->note = (note != NULL) ? strdup (note) : NULL;
-  o->exc = (struct days_s *) malloc (sizeof (struct days_s));
   strncpy (o->mesg, mesg, strlen (mesg) + 1);
   o->day = day;
   o->id = id;
@@ -655,7 +653,7 @@ recur_repeat_item (conf_t *conf)
     _("Enter the ending date: [%s] or '0' for an endless repetition");
   char *mesg_wrong_1 = _("The entered date is not valid.");
   char *mesg_wrong_2 =
-    _("Possible formats are [%s] or '0' for an endless repetetition");
+    _("Possible formats are [%s] or '0' for an endless repetition");
   char *wrong_type_1 = _("This item is already a repeated one.");
   char *wrong_type_2 = _("Press [ENTER] to continue.");
   char *mesg_older =
-- 
cgit v1.2.3-70-g09d2