aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/namespace.c')
-rw-r--r--src/plugins/fs/namespace.c34
1 files changed, 33 insertions, 1 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c
index 468d9a86..564a9fe6 100644
--- a/src/plugins/fs/namespace.c
+++ b/src/plugins/fs/namespace.c
@@ -868,7 +868,39 @@ void fs_namespace_start() {
868} 868}
869 869
870void fs_namespace_stop() { 870void fs_namespace_stop() {
871 /* FIXME: free memory! */ 871 NamespaceList * pos;
872 GtkTreeIter iter;
873 struct ECRS_URI * u;
874 struct ECRS_MetaData * m;
875
876 while (head != NULL) {
877 pos = head->next;
878 FREE(head->name);
879 ECRS_freeMetaData(head->meta);
880
881 if (gtk_tree_model_get_iter_first(head->model,
882 &iter)) {
883 do {
884 gtk_tree_model_get(head->model,
885 &iter,
886 IN_NAMESPACE_URI, &u,
887 IN_NAMESPACE_META, &m,
888 -1);
889 gtk_list_store_set(GTK_LIST_STORE(head->model),
890 &iter,
891 IN_NAMESPACE_URI, NULL,
892 IN_NAMESPACE_META, NULL,
893 -1);
894 if (u != NULL)
895 ECRS_freeUri(u);
896 if (m != NULL)
897 ECRS_freeMetaData(m);
898 } while (gtk_tree_model_iter_next(head->model,
899 &iter));
900 }
901 FREE(head);
902 head = pos;
903 }
872 904
873 delCronJob(&updateContentList, 905 delCronJob(&updateContentList,
874 5 * cronMINUTES, 906 5 * cronMINUTES,