Code

plugin: fix crash
authorFelix <felix.von.s@posteo.de>
Tue, 28 Mar 2017 18:34:46 +0000 (20:34 +0200)
committerMax Kellermann <max.kellermann@gmail.com>
Tue, 28 Mar 2017 18:34:46 +0000 (20:34 +0200)
NEWS
src/plugin.c

diff --git a/NEWS b/NEWS
index ac9cd9f6d6a8844af005f36334b1ccfea919b575..e913f5ae3d3ccc683a25b009c7b5b08e80a0cfdf 100644 (file)
--- 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
index dcca7b817d4a345a3d181a6ec5dfca74a83023a6..f9049ecfa77458285c07da66f4946f542a1b4959 100644 (file)
@@ -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);
 }