[Calendar] Fix for 330521

Johnny Jacob <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
Hi

Worked on 330521 Editing alarms with "Play a Sound"/"Program to run" crashes evo

Please review

Thanks
Johnny

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
330521-crash.diff (text/x-patch, 1.4 KB)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2984
diff -u -p -r1.2984 ChangeLog
--- ChangeLog	9 Feb 2006 11:42:40 -0000	1.2984
+++ ChangeLog	9 Feb 2006 13:47:41 -0000
@@ -1,3 +1,9 @@
+2006-02-09  Johnny Jacob  <[email protected]>
+
+	Fixes #330521
+	* gui/dialogs/alarm-dialog.c: (alarm_to_aalarm_widgets), 
+	(alarm_to_palarm_widgets): use icalattach_unref. 
+
 2006-02-09  Harish Krishnaswamy  <[email protected]>
 
 	* gui/e-cal-model.c: (e_cal_view_objects_added_cb):
Index: gui/dialogs/alarm-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/alarm-dialog.c,v
retrieving revision 1.14
diff -u -p -r1.14 alarm-dialog.c
--- gui/dialogs/alarm-dialog.c	30 Jan 2006 09:48:25 -0000	1.14
+++ gui/dialogs/alarm-dialog.c	9 Feb 2006 13:47:48 -0000
@@ -344,7 +344,7 @@ alarm_to_aalarm_widgets (Dialog *dialog,
 
 	e_cal_component_alarm_get_attach (alarm, (&attach));
 	url = icalattach_get_url (attach);
-	g_free (attach);
+	icalattach_unref (attach);
 
 	if ( !(url && *url) )
 		return;
@@ -492,7 +492,7 @@ alarm_to_palarm_widgets (Dialog *dialog,
 
 	e_cal_component_alarm_get_attach (alarm, (&attach));
 	url = icalattach_get_url (attach);
-	g_free (attach);
+	icalattach_unref (attach);
 
 	if ( !(url && *url) )
 		return;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.