g_free() should be used for g_malloc().
This commit is contained in:
parent
9978ebd853
commit
ec6f5b011a
1 changed files with 1 additions and 4 deletions
|
@ -624,10 +624,7 @@ hexchat_event_attrs_create (hexchat_plugin *ph)
|
|||
{
|
||||
hexchat_event_attrs *attrs;
|
||||
|
||||
attrs = malloc (sizeof (*attrs));
|
||||
|
||||
if (attrs == NULL)
|
||||
return NULL;
|
||||
attrs = g_malloc (sizeof (*attrs));
|
||||
|
||||
attrs->server_time_utc = (time_t) 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue