mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 02:11:08 +00:00
composetable: Don't use GSlice for big blobs
This just doesn't make sense. This will use malloc anyway, so just call malloc directly.
This commit is contained in:
parent
cebf2b2009
commit
140c5c5333
@ -507,7 +507,7 @@ gtk_compose_table_serialize (GtkComposeTable *compose_table,
|
||||
if (count)
|
||||
*count = total_length;
|
||||
|
||||
p = contents = g_slice_alloc (total_length);
|
||||
p = contents = g_malloc (total_length);
|
||||
|
||||
memcpy (p, header, length);
|
||||
p += length;
|
||||
@ -689,7 +689,7 @@ gtk_compose_table_save_cache (GtkComposeTable *compose_table)
|
||||
}
|
||||
|
||||
out_save_cache:
|
||||
g_slice_free1 (length, contents);
|
||||
g_free (contents);
|
||||
g_free (path);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user