evolution r36166 - in trunk/calendar: . gui



Author: mbarnes
Date: Thu Aug 28 14:04:21 2008
New Revision: 36166
URL: http://svn.gnome.org/viewvc/evolution?rev=36166&view=rev

Log:
2008-08-28  Matthew Barnes  <mbarnes redhat com>

	** Related to bug #547822

	* calendar/gui/print.c (print_table_draw_page), (print_table):
	Use g_malloc() and g_free() instead of malloc() and free().
	Also fix an "assignment discards qualifiers" compiler warning.



Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/gui/print.c

Modified: trunk/calendar/gui/print.c
==============================================================================
--- trunk/calendar/gui/print.c	(original)
+++ trunk/calendar/gui/print.c	Thu Aug 28 14:04:21 2008
@@ -2746,7 +2746,7 @@
 
 struct print_opts {
   EPrintable *printable;
-  gchar *print_header;
+  const gchar *print_header;
 };
 
 static void
@@ -2772,7 +2772,7 @@
 
 	} while (e_printable_data_left (opts->printable));
 
-	free(opts);
+	g_free (opts);
 }
 
 void
@@ -2790,7 +2790,7 @@
 	operation = e_print_operation_new ();
 	gtk_print_operation_set_n_pages (operation, 1);
 
-	opts = malloc(sizeof(struct print_opts));
+	opts = g_malloc (sizeof (struct print_opts));
 	opts->printable = printable;
 	opts->print_header = print_header;
 



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