aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-06-01 04:38:09 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-06-01 04:38:09 +0800
commitc0836df7ef28cff8195ba4592b9a02e82436df3b (patch)
tree8ba086aa67d9a18de7da0c43ff55b679b8978740 /shell
parent4b63089bda38776bf4aa20dc97e6db41823a061c (diff)
downloadgsoc2013-evolution-c0836df7ef28cff8195ba4592b9a02e82436df3b.tar.gz
gsoc2013-evolution-c0836df7ef28cff8195ba4592b9a02e82436df3b.tar.zst
gsoc2013-evolution-c0836df7ef28cff8195ba4592b9a02e82436df3b.zip
Set release for the CORBA path sequence to TRUE.
* evolution-storage-set-view.c (impl_StorageSetView__get_checkedFolders): Set release for the CORBA path sequence to TRUE. * evolution-shell-component.c (fill_corba_sequence_from_null_terminated_string_array): Set release for the CORBA sequence to TRUE so it gets freed properly. (impl__get_externalUriSchemas): Likewise for the returned uri_chema_list. * e-shell-offline-handler.c (duplicate_connection_list): Set release for the connection sequence to TRUE. * e-shell-config-offline.c (config_control_apply_callback): Set release for the path sequence to TRUE. * e-corba-storage-registry.c (impl_StorageRegistry_getStorageList): Set release for the storage sequence to TRUE. * evolution-storage.c (impl_Storage__get_folderList): Set release for the folder sequence to TRUE. svn path=/trunk/; revision=17062
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog25
-rw-r--r--shell/e-corba-storage-registry.c4
-rw-r--r--shell/e-shell-config-offline.c2
-rw-r--r--shell/e-shell-offline-handler.c2
-rw-r--r--shell/evolution-shell-component.c4
-rw-r--r--shell/evolution-storage-set-view.c1
-rw-r--r--shell/evolution-storage.c1
7 files changed, 38 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index be113acdb1..91fc7c6e8c 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,28 @@
+2002-05-31 Ettore Perazzoli <ettore@ximian.com>
+
+ * evolution-storage-set-view.c
+ (impl_StorageSetView__get_checkedFolders): Set release for the
+ CORBA path sequence to TRUE.
+
+ * evolution-shell-component.c
+ (fill_corba_sequence_from_null_terminated_string_array): Set
+ release for the CORBA sequence to TRUE so it gets freed properly.
+ (impl__get_externalUriSchemas): Likewise for the returned
+ uri_chema_list.
+
+ * e-shell-offline-handler.c (duplicate_connection_list): Set
+ release for the connection sequence to TRUE.
+
+ * e-shell-config-offline.c (config_control_apply_callback): Set
+ release for the path sequence to TRUE.
+
+ * e-corba-storage-registry.c
+ (impl_StorageRegistry_getStorageList): Set release for the storage
+ sequence to TRUE.
+
+ * evolution-storage.c (impl_Storage__get_folderList): Set release
+ for the folder sequence to TRUE.
+
2002-05-30 Ettore Perazzoli <ettore@ximian.com>
[This fixes #25361.]
diff --git a/shell/e-corba-storage-registry.c b/shell/e-corba-storage-registry.c
index 76d946a680..ed9f1b837c 100644
--- a/shell/e-corba-storage-registry.c
+++ b/shell/e-corba-storage-registry.c
@@ -185,7 +185,9 @@ impl_StorageRegistry_getStorageList (PortableServer_Servant servant,
storage_list->_buffer[storage_list->_length] = corba_storage;
storage_list->_length++;
}
-
+
+ CORBA_sequence_set_release (storage_list, TRUE);
+
return storage_list;
}
diff --git a/shell/e-shell-config-offline.c b/shell/e-shell-config-offline.c
index 79993365ea..d586293742 100644
--- a/shell/e-shell-config-offline.c
+++ b/shell/e-shell-config-offline.c
@@ -80,6 +80,8 @@ config_control_apply_callback (EvolutionConfigControl *config_control,
paths->_maximum = paths->_length = g_list_length (checked_paths);
paths->_buffer = CORBA_sequence_CORBA_string_allocbuf (paths->_maximum);
+ CORBA_sequence_set_release (paths, TRUE);
+
for (p = checked_paths, i = 0; p != NULL; p = p->next, i ++)
paths->_buffer[i] = CORBA_string_dup ((const char *) p->data);
diff --git a/shell/e-shell-offline-handler.c b/shell/e-shell-offline-handler.c
index fc26e71a38..99adcaa27c 100644
--- a/shell/e-shell-offline-handler.c
+++ b/shell/e-shell-offline-handler.c
@@ -171,6 +171,8 @@ duplicate_connection_list (const GNOME_Evolution_ConnectionList *source)
copy->_buffer[i].type = CORBA_string_dup (source->_buffer[i].type);
}
+ CORBA_sequence_set_release (copy, TRUE);
+
return copy;
}
diff --git a/shell/evolution-shell-component.c b/shell/evolution-shell-component.c
index b3383b742f..d03d3ae185 100644
--- a/shell/evolution-shell-component.c
+++ b/shell/evolution-shell-component.c
@@ -181,6 +181,8 @@ fill_corba_sequence_from_null_terminated_string_array (CORBA_sequence_CORBA_stri
for (i = 0; i < count; i++)
corba_sequence->_buffer[i] = CORBA_string_dup (array[i]);
+
+ CORBA_sequence_set_release (corba_sequence, TRUE);
}
@@ -330,6 +332,8 @@ impl__get_externalUriSchemas (PortableServer_Servant servant,
uri_schema_list->_buffer[i] = CORBA_string_dup (schema);
}
+ CORBA_sequence_set_release (uri_schema_list, TRUE);
+
return uri_schema_list;
}
diff --git a/shell/evolution-storage-set-view.c b/shell/evolution-storage-set-view.c
index 171b06b282..6016007015 100644
--- a/shell/evolution-storage-set-view.c
+++ b/shell/evolution-storage-set-view.c
@@ -319,6 +319,7 @@ impl_StorageSetView__get_checkedFolders (PortableServer_Servant servant,
e_free_string_list (path_list);
+ CORBA_sequence_set_release (return_list, TRUE);
return return_list;
}
diff --git a/shell/evolution-storage.c b/shell/evolution-storage.c
index 9e6b7883d5..2548ed2d35 100644
--- a/shell/evolution-storage.c
+++ b/shell/evolution-storage.c
@@ -319,6 +319,7 @@ impl_Storage__get_folderList (PortableServer_Servant servant,
e_folder_tree_foreach (priv->folder_tree, get_folder_list_foreach, folder_list);
+ CORBA_sequence_set_release (folder_list, TRUE);
return folder_list;
}