Plug memory leaks.
* providers/imap/camel-imap-message-cache.c (camel_imap_message_cache_remove): * camel-url.c (camel_url_to_string): Plug memory leaks. svn path=/trunk/; revision=9271
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
2001-04-12 Dan Winship <danw@ximian.com>
|
||||
|
||||
* providers/imap/camel-imap-message-cache.c
|
||||
(camel_imap_message_cache_remove):
|
||||
* camel-url.c (camel_url_to_string): Plug memory leaks.
|
||||
|
||||
2001-04-11 Dan Winship <danw@ximian.com>
|
||||
|
||||
* providers/imap/camel-imap-utils.c (imap_parse_string_generic):
|
||||
|
||||
@ -333,6 +333,7 @@ camel_url_to_string (CamelURL *url, guint32 flags)
|
||||
if (url->host) {
|
||||
enc = camel_url_encode (url->host, TRUE, ":/");
|
||||
g_string_sprintfa (str, "%s%s", url->user ? "@" : "", enc);
|
||||
g_free (enc);
|
||||
}
|
||||
if (url->port)
|
||||
g_string_sprintfa (str, ":%d", url->port);
|
||||
|
||||
@ -263,6 +263,7 @@ camel_imap_message_cache_remove (CamelImapMessageCache *cache, const char *uid)
|
||||
key = subparts->pdata[i];
|
||||
path = g_strdup_printf ("%s/%s", cache->path, key);
|
||||
unlink (path);
|
||||
g_free (path);
|
||||
stream = g_hash_table_lookup (cache->parts, key);
|
||||
if (stream) {
|
||||
camel_object_unhook_event (stream, "finalize",
|
||||
|
||||
Reference in New Issue
Block a user