mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-18 11:40:18 +00:00
Use glib for all allocations
- Removes need to check for malloc failure - Removes need for NULL checks on free - Adds checks for integer overflows - Removes some extra memset calls - Removes chance of mixing libc and glib malloc/free
This commit is contained in:
@@ -292,7 +292,7 @@ insert_hiddenchar (SexySpellEntry *entry, guint start, guint end)
|
||||
* is 'hidden' */
|
||||
#if 0
|
||||
PangoAttribute *hattr;
|
||||
PangoRectangle *rect = g_malloc (sizeof (PangoRectangle));
|
||||
PangoRectangle *rect = g_new (PangoRectangle, 1);
|
||||
|
||||
rect->x = 0;
|
||||
rect->y = 0;
|
||||
|
||||
Reference in New Issue
Block a user