24 lines
771 B
Diff
24 lines
771 B
Diff
From 7fd64c41435a2b99fb9e0a5770a83ba30cd11450 Mon Sep 17 00:00:00 2001
|
|
From: "Stephan C. Buchert" <scb@irfu.se>
|
|
Date: Wed, 14 Jun 2023 17:44:05 +0200
|
|
Subject: [PATCH] compose_message: to load as byte array, 'file' must be
|
|
wrapped with copy.
|
|
|
|
---
|
|
src/compose_message.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/compose_message.cc b/src/compose_message.cc
|
|
index 189c20f99..329481f40 100644
|
|
--- a/src/compose_message.cc
|
|
+++ b/src/compose_message.cc
|
|
@@ -781,7 +781,7 @@ namespace Astroid {
|
|
|
|
} else {
|
|
/* load into byte array */
|
|
- refptr<Gio::File> fle = Glib::wrap (file, false);
|
|
+ refptr<Gio::File> fle = Glib::wrap (file, true);
|
|
refptr<Gio::FileInputStream> istr = fle->read ();
|
|
|
|
refptr<Glib::Bytes> b;
|