changeset 957:bd699ba9a469

Fixed a memory leak introduced by 691053e40394
author Jorge Arellano Cid <jcid@dillo.org>
date Tue, 17 Feb 2009 10:24:07 -0300
parents dd46fa6ceb94
children 1a26b2bd7138
files src/cache.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cache.c	Tue Feb 17 11:57:06 2009 +0100
+++ b/src/cache.c	Tue Feb 17 10:24:07 2009 -0300
@@ -525,13 +525,13 @@
             if (entry->CharsetDecoder)
                a_Decode_free(entry->CharsetDecoder);
             entry->CharsetDecoder = a_Decode_charset_init(charset);
-            dFree(charset);
             curr = Cache_current_content_type(entry);
 
             /* Invalidate UTF8Data */
             dStr_free(entry->UTF8Data, 1);
             entry->UTF8Data = NULL;
          }
+         dFree(major); dFree(minor); dFree(charset);
       }
    }
    return curr;