From: lace <> Date: Sun, 1 Jan 2006 10:07:09 +0000 (+0000) Subject: Fixed captive_file_file_info_set() sandbox child interface SIGSEGV. X-Git-Tag: captive-1_1_7~24 X-Git-Url: https://git.jankratochvil.net/?p=captive.git;a=commitdiff_plain;h=7b83d5330756878720f26c0f4314332f53892009 Fixed captive_file_file_info_set() sandbox child interface SIGSEGV. - Due to the recent sub-second implementation. --- 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; }