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

View File

@ -624,10 +624,7 @@ hexchat_event_attrs_create (hexchat_plugin *ph)
{ {
hexchat_event_attrs *attrs; hexchat_event_attrs *attrs;
attrs = malloc (sizeof (*attrs)); attrs = g_malloc (sizeof (*attrs));
if (attrs == NULL)
return NULL;
attrs->server_time_utc = (time_t) 0; attrs->server_time_utc = (time_t) 0;