summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/channels.c1
-rw-r--r--src/core/queries.c1
-rw-r--r--src/core/window-item-rec.h2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/core/channels.c b/src/core/channels.c
index f3d3a7a4..6a0a315e 100644
--- a/src/core/channels.c
+++ b/src/core/channels.c
@@ -48,6 +48,7 @@ void channel_init(CHANNEL_REC *channel, int automatic)
MODULE_DATA_INIT(channel);
channel->type = module_get_uniq_id_str("WINDOW ITEM TYPE", "CHANNEL");
+ channel->destroy = (void (*) (WI_ITEM_REC *)) channel_destroy;
channel->mode = g_strdup("");
channel->createtime = time(NULL);
channel->get_join_data = get_join_data;
diff --git a/src/core/queries.c b/src/core/queries.c
index d1c51352..cdbdbd9f 100644
--- a/src/core/queries.c
+++ b/src/core/queries.c
@@ -36,6 +36,7 @@ void query_init(QUERY_REC *query, int automatic)
MODULE_DATA_INIT(query);
query->type = module_get_uniq_id_str("WINDOW ITEM TYPE", "QUERY");
+ query->destroy = (void (*) (WI_ITEM_REC *)) query_destroy;
if (query->server_tag != NULL) {
query->server = server_find_tag(query->server_tag);
if (query->server != NULL) {
diff --git a/src/core/window-item-rec.h b/src/core/window-item-rec.h
index 5c09a5b0..eeb465f4 100644
--- a/src/core/window-item-rec.h
+++ b/src/core/window-item-rec.h
@@ -12,4 +12,6 @@ time_t createtime;
int data_level;
char *hilight_color;
+void (*destroy)(WI_ITEM_REC *item);
+
#undef STRUCT_SERVER_REC