g_free() should be used for g_malloc().

This commit is contained in:
Diogo Sousa 2013-07-13 05:33:16 +01:00
parent 9978ebd853
commit ec6f5b011a
1 changed files with 1 additions and 4 deletions

View File

@ -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;