Both g_[file|bytes]_icon_load() leave the `type' out parameter
untouched, while the async methods g_[file|bytes]_icon_load_finish()
always set it to NULL.
For consistency's sake NULLify it in the sync methods too.
https://bugzilla.gnome.org/show_bug.cgi?id=700725
{
GBytesIcon *bytes_icon = G_BYTES_ICON (icon);
+ if (type)
+ *type = NULL;
+
return g_memory_input_stream_new_from_bytes (bytes_icon->bytes);
}
stream = g_file_read (file_icon->file,
cancellable,
error);
+
+ if (stream && type)
+ *type = NULL;
return G_INPUT_STREAM (stream);
}