mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
DCC_REC was missing MODULE_DATA_INIT() / .._DEINIT()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1602 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f1ecfca8a7
commit
e72780d4d6
@ -76,6 +76,7 @@ void dcc_init_rec(DCC_REC *dcc, IRC_SERVER_REC *server, CHAT_DCC_REC *chat,
|
||||
g_return_if_fail(arg != NULL);
|
||||
g_return_if_fail(server != NULL || chat != NULL);
|
||||
|
||||
MODULE_DATA_INIT(dcc);
|
||||
dcc->created = time(NULL);
|
||||
dcc->chat = chat;
|
||||
dcc->arg = g_strdup(arg);
|
||||
@ -108,6 +109,7 @@ void dcc_destroy(DCC_REC *dcc)
|
||||
if (dcc->tagread != -1) g_source_remove(dcc->tagread);
|
||||
if (dcc->tagwrite != -1) g_source_remove(dcc->tagwrite);
|
||||
|
||||
MODULE_DATA_DEINIT(dcc);
|
||||
g_free_not_null(dcc->servertag);
|
||||
g_free_not_null(dcc->target);
|
||||
g_free(dcc->mynick);
|
||||
|
Loading…
Reference in New Issue
Block a user