[evolution] Bug 742034 - Crash after dragging image URL to photo box in contact editor
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 742034 - Crash after dragging image URL to photo box in contact editor
- Date: Wed, 7 Jan 2015 15:10:14 +0000 (UTC)
commit 2235c47a3c9efb5b6e27dea3b4eb16a4fee01f94
Author: Milan Crha <mcrha redhat com>
Date: Wed Jan 7 16:09:21 2015 +0100
Bug 742034 - Crash after dragging image URL to photo box in contact editor
e-util/e-image-chooser.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-image-chooser.c b/e-util/e-image-chooser.c
index fdf9feb..cd7d663 100644
--- a/e-util/e-image-chooser.c
+++ b/e-util/e-image-chooser.c
@@ -265,9 +265,8 @@ image_chooser_file_loaded_cb (GFile *file,
goto exit;
}
- set_image_from_data (chooser, contents, length);
-
- g_free (contents);
+ if (!set_image_from_data (chooser, contents, length))
+ g_free (contents);
exit:
g_object_unref (chooser);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]