After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 540662 - MemoryInputStream.from_data() and add_data() should allow null DestroyNotify
MemoryInputStream.from_data() and add_data() should allow null DestroyNotify
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.3.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-28 19:03 UTC by Stef Walter
Modified: 2008-06-29 03:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stef Walter 2008-06-28 19:03:02 UTC
The DestroyNotify arguments to MemoryInputStream.from_data() and add_data() should allow nulls:

/* 
 * valac --pkg gio-2.0 test.vala
 */

using GLib;

public class Test : GLib.Object {
	public static void main(string[] args) {
		// Should allow null DestroyNotify
		MemoryInputStream input = new MemoryInputStream.from_data ("test", 4, null);
	}
}
Comment 1 Jared Moore 2008-06-29 03:30:33 UTC
2008-06-29  Jared Moore  <jaredm@svn.gnome.org>

	* vapi/packages/gio-2.0/gio-2.0.metadata:

	Let 'destroy' arguments of g_memory_input_stream_add_data and 
	g_memory_input_stream_new_from_data be nullable, fixes bug 540662.

	* vapi/gio-2.0.vapi: Regenerated

Fixed in r1660.