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.c39
1 files changed, 26 insertions, 13 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c
index faf02567..47f55a0b 100644
--- a/src/plugins/fs/namespace.c
+++ b/src/plugins/fs/namespace.c
@@ -1031,9 +1031,12 @@ void on_namespaceUpdateButton_clicked_fs(GtkWidget * dummy1,
1031 GE_BREAK(ectx, 0); 1031 GE_BREAK(ectx, 0);
1032 UNREF(metaXML); 1032 UNREF(metaXML);
1033 metaXML = NULL; 1033 metaXML = NULL;
1034 FREENONNULL(last); 1034 if (last != NULL)
1035 FREENONNULL(next); 1035 free(last);
1036 FREENONNULL(freq); 1036 if (next != NULL)
1037 free(next);
1038 if (freq != NULL)
1039 free(freq);
1037 return; 1040 return;
1038 } 1041 }
1039 if (OK == enc2hash(last, 1042 if (OK == enc2hash(last,
@@ -1066,9 +1069,12 @@ void on_namespaceUpdateButton_clicked_fs(GtkWidget * dummy1,
1066 GE_BREAK(ectx, 0); 1069 GE_BREAK(ectx, 0);
1067 UNREF(metaXML); 1070 UNREF(metaXML);
1068 metaXML = NULL; 1071 metaXML = NULL;
1069 FREENONNULL(last); 1072 if (last != NULL)
1070 FREENONNULL(next); 1073 free(last);
1071 FREENONNULL(freq); 1074 if (next != NULL)
1075 free(next);
1076 if (freq != NULL)
1077 free(freq);
1072 return; 1078 return;
1073 } 1079 }
1074 hash2enc(&nextId, 1080 hash2enc(&nextId,
@@ -1148,9 +1154,12 @@ void on_namespaceUpdateButton_clicked_fs(GtkWidget * dummy1,
1148 gtk_widget_destroy(dialog); 1154 gtk_widget_destroy(dialog);
1149 UNREF(metaXML); 1155 UNREF(metaXML);
1150 metaXML = NULL; 1156 metaXML = NULL;
1151 FREENONNULL(last); 1157 if (last != NULL)
1152 FREENONNULL(next); 1158 free(last);
1153 FREENONNULL(freq); 1159 if (next != NULL)
1160 free(next);
1161 if (freq != NULL)
1162 free(freq);
1154 DEBUG_END(); 1163 DEBUG_END();
1155} 1164}
1156 1165
@@ -1248,8 +1257,10 @@ void on_namespaceRatingSpinButton_changed_fs(GtkWidget * dummy,
1248 gtk_widget_set_sensitive(spin, 1257 gtk_widget_set_sensitive(spin,
1249 FALSE); 1258 FALSE);
1250 } 1259 }
1251 FREENONNULL(description); 1260 if (description != NULL)
1252 FREENONNULL(encStr); 1261 free(description);
1262 if (encStr != NULL)
1263 free(encStr);
1253 DEBUG_END(); 1264 DEBUG_END();
1254} 1265}
1255 1266
@@ -1324,8 +1335,10 @@ void on_searchNamespaceComboBoxEntry_changed_fs(GtkWidget * dummy,
1324 gtk_widget_set_sensitive(spin, 1335 gtk_widget_set_sensitive(spin,
1325 FALSE); 1336 FALSE);
1326 } 1337 }
1327 FREENONNULL(descStr); 1338 if (descStr != NULL)
1328 FREENONNULL(encStr); 1339 free(descStr);
1340 if (encStr != NULL)
1341 free(encStr);
1329 DEBUG_END(); 1342 DEBUG_END();
1330} 1343}
1331 1344