/* Channel to read from daemon */
GIOChannel *from_server_channel;
+ guint from_server_watch;
/* Data read from the daemon */
guint8 *read_buffer;
return FALSE;
}
- g_io_add_watch (priv->from_server_channel, G_IO_IN, from_server_cb, greeter);
+ priv->from_server_watch = g_io_add_watch (priv->from_server_channel, G_IO_IN, from_server_cb, greeter);
if (!g_io_channel_set_encoding (priv->to_server_channel, NULL, error) ||
!g_io_channel_set_encoding (priv->from_server_channel, NULL, error))
g_io_channel_unref (priv->to_server_channel);
if (priv->from_server_channel)
g_io_channel_unref (priv->from_server_channel);
+ if (priv->from_server_watch)
+ g_source_remove (priv->from_server_watch);
+ priv->from_server_watch = 0;
g_clear_pointer (&priv->read_buffer, g_free);
g_list_free_full (priv->responses_received, g_free);
priv->responses_received = NULL;
{
Request *request = REQUEST (object);
- g_clear_object (&request->greeter);
g_clear_object (&request->cancellable);
g_free (request->dir);