X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fw32handle-namespace.c;h=f45d2efae532dc9487ed5719201516f42a87acaa;hb=HEAD;hp=6975c48934b2057e05085f0b65505247bcf934f0;hpb=2015a4ab214a8ec73e6a132da76d9681aaa99e06;p=mono.git diff --git a/mono/metadata/w32handle-namespace.c b/mono/metadata/w32handle-namespace.c index 6975c48934b..f45d2efae53 100644 --- a/mono/metadata/w32handle-namespace.c +++ b/mono/metadata/w32handle-namespace.c @@ -91,9 +91,7 @@ mono_w32handle_namespace_search_handle_callback (gpointer handle, gpointer data, __func__, handle); /* we do not want the handle to be destroyed before we return it */ - mono_w32handle_ref (handle); - - search_data->ret = handle; + search_data->ret = mono_w32handle_duplicate (handle); } return TRUE;