Skip to content
  • Dan Winship's avatar
    GMemoryInputStream/GMemoryOutputStream: fix bug in previous commit · e7983495
    Dan Winship authored
    A g_input_stream_read_async() implementation can't call
    g_input_stream_read() on itself directly because it will fail because
    the pending flag is already set. So fix that by invoking the vmethod
    directly rather than calling the wrapper. Likewise with
    GMemoryOutputStream.
    
    Add a test to gio/tests/memory-input-stream.c to catch read_async
    failures in the future.
    e7983495