[balsa] compose window: Chack BalsaSendmsg:ident
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] compose window: Chack BalsaSendmsg:ident
- Date: Thu, 21 May 2020 01:34:20 +0000 (UTC)
commit 6f62823194d2a642288928606fcc9d2d1264eeff
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed May 20 20:49:09 2020 -0400
compose window: Chack BalsaSendmsg:ident
BalsaSendmsg:ident may be destroyed while the compose window
is open, and the only way we can know is if it is removed from
BalsaApplication:indenties.
* src/sendmsg-window.c (balsa_sendmsg_destroy_handler): check if
BalsaSendmsg:ident can be found in BalsaApplication:indenties.
src/sendmsg-window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 172e6ea6f..2b87815d2 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -618,7 +618,7 @@ balsa_sendmsg_destroy_handler(BalsaSendmsg * bsmsg)
g_object_unref(bsmsg->buffer2);
#endif /* HAVE_GTKSOURCEVIEW */
- if (g_list_find(balsa_app.identities, bsmsg->ident)) {
+ if (g_list_find(balsa_app.identities, bsmsg->ident) != NULL) {
/* Move the current identity to the start of the list */
balsa_app.identities =
g_list_remove(balsa_app.identities, bsmsg->ident);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]