changeset 1154:97cac73b5c71

free Keys
author corvid <corvid@lavabit.com>
date Mon, 01 Jun 2009 04:12:51 +0000
parents efb854e7b418
children 19e94f78cf85
files src/dillo.cc src/keys.cc
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dillo.cc	Mon Jun 01 01:29:42 2009 +0000
+++ b/src/dillo.cc	Mon Jun 01 04:12:51 2009 +0000
@@ -364,6 +364,7 @@
    a_Dns_freeall();
    a_History_freeall();
    a_Prefs_freeall();
+   Keys::free();
    /* TODO: auth, css */
 
    //a_Dpi_bye_dpid();
--- a/src/keys.cc	Mon Jun 01 01:29:42 2009 +0000
+++ b/src/keys.cc	Mon Jun 01 04:12:51 2009 +0000
@@ -131,6 +131,7 @@
 
    while ((node = (KeyBinding_t*)dList_nth_data(bindings, 0))) {
       dFree((char*)node->name);
+      dList_remove_fast(bindings, node);
       dFree(node);
    }
    dList_free(bindings);