[evolution-patches] memory leak patch



This patch fixes a memory leak introduced by my fix for #41760
? gui/alarm-notify/alarm-notify.gladep
? gui/dialogs/alarm-options.gladep
? gui/dialogs/alarm-page.gladep
? gui/dialogs/cal-prefs-dialog.gladep
? gui/dialogs/e-delegate-dialog.gladep
? gui/dialogs/event-page.gladep
? gui/dialogs/meeting-page.gladep
? gui/dialogs/recurrence-page.gladep
? gui/dialogs/schedule-page.gladep
? gui/dialogs/task-details-page.gladep
? gui/dialogs/task-page.gladep
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.1762
diff -u -p -r1.1762 ChangeLog
--- ChangeLog	13 May 2003 18:15:38 -0000	1.1762
+++ ChangeLog	13 May 2003 18:59:42 -0000
@@ -1,3 +1,8 @@
+2003-05-13  Rodrigo Moya <rodrigo ximian com>
+
+	* gui/alarm-notify/alarm-queue.c (notify_dialog_cb): fixed memory
+	leak introduced by previous commit.
+
 2003-05-12  Rodrigo Moya <rodrigo ximian com>
 
 	Fixes #41760
Index: gui/alarm-notify/alarm-queue.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/alarm-notify/alarm-queue.c,v
retrieving revision 1.39
diff -u -p -r1.39 alarm-queue.c
--- gui/alarm-notify/alarm-queue.c	13 May 2003 18:15:38 -0000	1.39
+++ gui/alarm-notify/alarm-queue.c	13 May 2003 18:59:43 -0000
@@ -695,6 +695,10 @@ notify_dialog_cb (AlarmNotifyResult resu
 	switch (result) {
 	case ALARM_NOTIFY_SNOOZE:
 		create_snooze (c->cqa, c->alarm_id, snooze_mins);
+
+		g_object_unref (c->comp);
+		g_object_unref (c->client);
+		g_free (c);
 		return;
 
 	case ALARM_NOTIFY_EDIT:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]