X-Git-Url: http://git.jankratochvil.net/?p=captive.git;a=blobdiff_plain;f=src%2Flibcaptive%2Fsandbox%2Fserver-File.c;h=917994a12dda8b37b61ba879e91805de688197cc;hp=b5a144bef2e50e66051273a1df399839560433c1;hb=7b83d5330756878720f26c0f4314332f53892009;hpb=e0ef8dfdcacaf89a6c154131ed41291dc2934975 diff --git a/src/libcaptive/sandbox/server-File.c b/src/libcaptive/sandbox/server-File.c index b5a144b..917994a 100644 --- a/src/libcaptive/sandbox/server-File.c +++ b/src/libcaptive/sandbox/server-File.c @@ -283,8 +283,14 @@ static void impl_Captive_File_file_info_set(impl_POA_Captive_File *servant, CaptiveFileInfoObject *file_info_captive; GnomeVFSResult errvfsresult; + if (GNOME_VFS_OK!=(errvfsresult=captive_file_info_object_new(&file_info_captive))) { + captive_sandbox_child_GnomeVFSResultException_throw(ev,errvfsresult); + return; + } + if (GNOME_VFS_OK!=(errvfsresult=captive_sandbox_file_info_corba_to_captive( file_info_captive,file_info_corba))) { + g_object_unref(file_info_captive); captive_sandbox_child_GnomeVFSResultException_throw(ev,errvfsresult); return; }