[monkey-bubble: 519/753] hack it up.



commit 7dd612b109b82dae8dfc51913655de5825ef679f
Author: Michael Meeks <michael ximian com>
Date:   Tue Jul 10 12:34:33 2001 +0000

    hack it up.
    
    2001-07-10  Michael Meeks  <michael ximian com>
    
    	* tests/test-storage.c (main): hack it up.
    
    2001-07-10  Michael Meeks  <michael ximian com>
    
    	* bonobo-storage-fs.c (fs_open_storage),
    	(fs_open_stream): CORBA_Object_duplicate the return
    	values.

 ChangeLog                    |    4 ++++
 monikers/ChangeLog           |    6 ++++++
 monikers/bonobo-storage-fs.c |    6 ++++--
 tests/test-storage.c         |    5 ++++-
 4 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 38be793..591f0e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-07-10  Michael Meeks  <michael ximian com>
+
+	* tests/test-storage.c (main): hack it up.
+
 2001-07-09  Michael Meeks  <michael ximian com>
 
 	* tests: add.
diff --git a/monikers/ChangeLog b/monikers/ChangeLog
index 160ee5b..223783a 100644
--- a/monikers/ChangeLog
+++ b/monikers/ChangeLog
@@ -1,5 +1,11 @@
 2001-07-10  Michael Meeks  <michael ximian com>
 
+	* bonobo-storage-fs.c (fs_open_storage),
+	(fs_open_stream): CORBA_Object_duplicate the return
+	values.
+
+2001-07-10  Michael Meeks  <michael ximian com>
+
 	* bonobo-moniker-file.c (bonobo_moniker_file_resolve):
 	upd. to use it.
 
diff --git a/monikers/bonobo-storage-fs.c b/monikers/bonobo-storage-fs.c
index d2f86f2..1d6f988 100644
--- a/monikers/bonobo-storage-fs.c
+++ b/monikers/bonobo-storage-fs.c
@@ -135,7 +135,8 @@ fs_open_stream (PortableServer_Servant  storage,
 		bonobo_stream_fs_open (full, mode, 0644, ev));
 	g_free (full);
 
-	return BONOBO_OBJREF (stream);
+	return CORBA_Object_duplicate (
+		BONOBO_OBJREF (stream), ev);
 }
 
 static Bonobo_Storage
@@ -154,7 +155,8 @@ fs_open_storage (PortableServer_Servant  storage,
 		bonobo_storage_fs_open (full, mode, 0644, ev));
 	g_free (full);
 
-	return BONOBO_OBJREF (new_storage);
+	return CORBA_Object_duplicate (
+		BONOBO_OBJREF (new_storage), ev);
 }
 
 static void
diff --git a/tests/test-storage.c b/tests/test-storage.c
index d5e443f..fb441b4 100644
--- a/tests/test-storage.c
+++ b/tests/test-storage.c
@@ -474,7 +474,9 @@ main (int argc, char *argv [])
 		g_error (_("Can not bonobo_init"));
 
 	orb = bonobo_orb ();
-	
+
+#warning FIXME: we need to port this to bonobo_get_object from bonobo_storage_open_full
+#if 0
 	while ((driver = driver_list [dn++])) {
 		printf ("TEST DRIVER: %s\n", driver);
 		
@@ -524,6 +526,7 @@ main (int argc, char *argv [])
 		bonobo_object_unref (BONOBO_OBJECT(bonobo_storage1));
 
 	}
+#endif
 
 	CORBA_exception_free (&ev);
    



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]