X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fimage.c;h=c58c4b6794a056cdcec340a869748af3bb66bfa0;hb=28d9e844c0cf5ff29e9ca3cd2041702b2355d371;hp=b16cd7cc2e88dd4fecb216b724ad1a14793503b2;hpb=2129176357eac79569d9883e47c733f24e9a852e;p=mono.git diff --git a/mono/metadata/image.c b/mono/metadata/image.c index b16cd7cc2e8..c58c4b6794a 100644 --- a/mono/metadata/image.c +++ b/mono/metadata/image.c @@ -9,6 +9,7 @@ * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) * + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include #include @@ -1299,6 +1300,7 @@ mono_image_open_from_data_internal (char *data, guint32 data_len, gboolean need_ image->image_info = iinfo; image->ref_only = refonly; image->metadata_only = metadata_only; + image->ref_count = 1; image = do_mono_image_load (image, status, TRUE, TRUE); if (image == NULL)