projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bc1755
)
* fixed 2 memleaks
author
Arne Zellentin
<arne@kernelconcepts.de>
Fri, 9 Jun 2006 10:37:42 +0000
(10:37 +0000)
committer
Arne Zellentin
<arne@kernelconcepts.de>
Fri, 9 Jun 2006 10:37:42 +0000
(10:37 +0000)
pmo-trunk-r209
src/modest-tny-msg-view.c
patch
|
blob
|
history
diff --git
a/src/modest-tny-msg-view.c
b/src/modest-tny-msg-view.c
index
af06c1a
..
f97283f
100644
(file)
--- a/
src/modest-tny-msg-view.c
+++ b/
src/modest-tny-msg-view.c
@@
-247,10
+247,13
@@
find_attachment_by_filename (TnyMsgIface *msg, const gchar *fn)
part = g_list_nth_data(parts, pos);
dummy = construct_virtual_filename_from_mime_part(part, pos);
- if (strcmp(dummy, fn) == 0)
+ if (strcmp(dummy, fn) == 0) {
+ g_free(dummy);
return part;
- else
+ } else {
+ g_free(dummy);
return NULL;
+ }
}
@@
-438,6
+441,7
@@
attachments_as_html(ModestTnyMsgView *self, TnyMsgIface *msg)
} else {
g_string_append_printf(appendix, "<A href=\"attachment:%s\">%s</A>: %s<BR>\n", filename, filename, content_type);
}
+ g_free(virtual_filename);
}
attachment = attachment->next;
}