comparison pidgin/gtkcertmgr.c @ 19270:fb4a1fb9ce8a

- Fix some overzealous g_asserts leading to a crash
author William Ehlhardt <williamehlhardt@gmail.com>
date Tue, 14 Aug 2007 06:31:50 +0000
parents 8828d7aec7b6
children 2f0960548c1d
comparison
equal deleted inserted replaced
19269:f14d539508ca 19270:fb4a1fb9ce8a
357 tls_peers_mgmt_delete_confirm_cb(gchar *id, gint choice) 357 tls_peers_mgmt_delete_confirm_cb(gchar *id, gint choice)
358 { 358 {
359 if (1 == choice) { 359 if (1 == choice) {
360 /* Yes, delete was confirmed */ 360 /* Yes, delete was confirmed */
361 /* Now delete the thing */ 361 /* Now delete the thing */
362 g_assert(purple_certificate_pool_delete(tpm_dat->tls_peers, id)); 362 if (!purple_certificate_pool_delete(tpm_dat->tls_peers, id)) {
363 purple_debug_warning("gtkcertmgr/tls_peers_mgmt",
364 "Deletion failed on id %s\n",
365 id);
366 };
363 } 367 }
364 368
365 g_free(id); 369 g_free(id);
366 } 370 }
367 371