diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2008-08-28 22:04:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-08-28 22:04:21 +0800 |
commit | 7037bfe82d12fdf39441507e10a4085c6d59e586 (patch) | |
tree | caa5c84043270871ed0a87443753a528899b4a66 /calendar/gui/print.c | |
parent | b693cbeb05a95fd893ef6053548c7aa7300c999a (diff) | |
download | gsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.tar.gz gsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.tar.zst gsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.zip |
** Related to bug #547822
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.
svn path=/trunk/; revision=36166
Diffstat (limited to 'calendar/gui/print.c')
-rw-r--r-- | calendar/gui/print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c index dd990739e6..e68ec84a84 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -2746,7 +2746,7 @@ print_title (GtkPrintContext *context, const gchar *text, gdouble page_width) struct print_opts { EPrintable *printable; - gchar *print_header; + const gchar *print_header; }; static void @@ -2772,7 +2772,7 @@ print_table_draw_page (GtkPrintOperation *operation, } while (e_printable_data_left (opts->printable)); - free(opts); + g_free (opts); } void @@ -2790,7 +2790,7 @@ print_table (ETable *table, const gchar *dialog_title, 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; |