"%s:%s: got PropertyNotify erroring out of INCR",
priv->selection, priv->target);
/* error, should we signal one? */
- gdk_x11_selection_input_stream_complete (stream);
+ g_clear_pointer (&stream, gdk_x11_selection_input_stream_complete);
}
else if (g_bytes_get_size (bytes) == 0 || type == None)
{
"%s:%s: got PropertyNotify ending INCR",
priv->selection, priv->target);
g_bytes_unref (bytes);
- gdk_x11_selection_input_stream_complete (stream);
+ g_clear_pointer (&stream, gdk_x11_selection_input_stream_complete);
}
else
{
G_IO_ERROR,
G_IO_ERROR_NOT_FOUND,
_("Format %s not supported"), priv->target);
- gdk_x11_selection_input_stream_complete (stream);
+ g_clear_pointer (&stream, gdk_x11_selection_input_stream_complete);
}
else
{
if (bytes == NULL)
{
- gdk_x11_selection_input_stream_complete (stream);
+ g_clear_pointer (&stream, gdk_x11_selection_input_stream_complete);
}
else
{
g_bytes_get_size (bytes));
g_async_queue_push (priv->chunks, bytes);
- gdk_x11_selection_input_stream_complete (stream);
+ g_clear_pointer (&stream, gdk_x11_selection_input_stream_complete);
}
}