diff options
Diffstat (limited to 'src/namestore/gnunet-namestore-gtk.c')
-rw-r--r-- | src/namestore/gnunet-namestore-gtk.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c index 08d7bc20..8d1939aa 100644 --- a/src/namestore/gnunet-namestore-gtk.c +++ b/src/namestore/gnunet-namestore-gtk.c | |||
@@ -1268,11 +1268,7 @@ gnunet_namestore_gtk_type_cellrenderercombo_edited_cb (GtkCellRendererText *text | |||
1268 | struct RecordInfo *ri; | 1268 | struct RecordInfo *ri; |
1269 | 1269 | ||
1270 | if (0 == strcmp (new_text, _(NEW_RECORD_STR))) | 1270 | if (0 == strcmp (new_text, _(NEW_RECORD_STR))) |
1271 | { | ||
1272 | GNUNET_break (0); | ||
1273 | g_free (new_text); | ||
1274 | return; /* no record type was selected */ | 1271 | return; /* no record type was selected */ |
1275 | } | ||
1276 | type = GNUNET_NAMESTORE_typename_to_number (new_text); | 1272 | type = GNUNET_NAMESTORE_typename_to_number (new_text); |
1277 | if (UINT32_MAX == type) | 1273 | if (UINT32_MAX == type) |
1278 | { | 1274 | { |
@@ -1281,7 +1277,6 @@ gnunet_namestore_gtk_type_cellrenderercombo_edited_cb (GtkCellRendererText *text | |||
1281 | new_text); | 1277 | new_text); |
1282 | show_error_message (_("Unsupported record type"), | 1278 | show_error_message (_("Unsupported record type"), |
1283 | new_text); | 1279 | new_text); |
1284 | g_free (new_text); | ||
1285 | return; | 1280 | return; |
1286 | } | 1281 | } |
1287 | /* check if this is a new record */ | 1282 | /* check if this is a new record */ |
@@ -1292,7 +1287,6 @@ gnunet_namestore_gtk_type_cellrenderercombo_edited_cb (GtkCellRendererText *text | |||
1292 | if (NULL == name_str) | 1287 | if (NULL == name_str) |
1293 | { | 1288 | { |
1294 | GNUNET_break (0); | 1289 | GNUNET_break (0); |
1295 | g_free (new_text); | ||
1296 | return; | 1290 | return; |
1297 | } | 1291 | } |
1298 | GNUNET_CRYPTO_hash (name_str, strlen (name_str), &name_hash); | 1292 | GNUNET_CRYPTO_hash (name_str, strlen (name_str), &name_hash); |
@@ -1301,7 +1295,6 @@ gnunet_namestore_gtk_type_cellrenderercombo_edited_cb (GtkCellRendererText *text | |||
1301 | (GNUNET_OK == check_permissions (ri, type)) ) | 1295 | (GNUNET_OK == check_permissions (ri, type)) ) |
1302 | launch_edit_dialog (type, name_str, ri, UINT_MAX); | 1296 | launch_edit_dialog (type, name_str, ri, UINT_MAX); |
1303 | g_free (name_str); | 1297 | g_free (name_str); |
1304 | g_free (new_text); | ||
1305 | } | 1298 | } |
1306 | 1299 | ||
1307 | 1300 | ||