From 7b83d5330756878720f26c0f4314332f53892009 Mon Sep 17 00:00:00 2001 From: lace <> Date: Sun, 1 Jan 2006 10:07:09 +0000 Subject: [PATCH] Fixed captive_file_file_info_set() sandbox child interface SIGSEGV. - Due to the recent sub-second implementation. --- src/libcaptive/sandbox/server-File.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 1.8.3.1