[Bug 33026] [dapper] evolution drag and drop crash
aurelien naldi
aurelien.naldi at gmail.com
Fri Mar 10 19:57:26 UTC 2006
Public bug report changed:
https://launchpad.net/malone/bugs/33026
Comment:
ok, this was pretty easy to fix, here is a simple patch that fix it for
me, it is simple enough to be accepted upstream this late in the release
cycle I think :)
--- em-utils.c 2006-02-27 09:22:43.000000000 +0100
+++ evolution-2.5.92/mail/em-utils.c 2006-03-10 20:54:26.000000000 +0100
@@ -1174,12 +1174,13 @@
g_free(file);
fd = g_open(tmpfile, O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0666);
- g_free(tmpfile);
if (fd == -1) {
+ g_free(tmpfile);
return;
}
uri = g_filename_to_uri(tmpfile, NULL, NULL);
+ g_free(tmpfile);
fstream = camel_stream_fs_new_with_fd(fd);
if (fstream) {
if (em_utils_write_messages_to_stream(folder, uids, fstream) == 0) {
More information about the desktop-bugs
mailing list