From: Felix Date: Tue, 28 Mar 2017 18:34:46 +0000 (+0200) Subject: plugin: fix crash X-Git-Tag: v0.28~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=36e3f4589afc5bf3d17c0584719a86a577340fa0;p=ncmpc.git plugin: fix crash --- diff --git a/NEWS b/NEWS index ac9cd9f..e913f5a 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ ncmpc 0.28 - not yet released +* fix crash on lyrics screen ncmpc 0.27 - (2017-03-25) * work around connect failure if /var/run/mpd/socket does not exist diff --git a/src/plugin.c b/src/plugin.c index dcca7b8..f9049ec 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -216,7 +216,7 @@ plugin_fd_add(struct plugin_cycle *cycle, struct plugin_pipe *p, int fd) p->data = g_string_new(NULL); GIOChannel *channel = g_io_channel_unix_new(fd); p->event_id = g_io_add_watch(channel, G_IO_IN|G_IO_HUP, - plugin_data, cycle); + plugin_data, p); g_io_channel_unref(channel); }