[eog: 1/2] eog-image: fix double-free of eog image status mutex
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 1/2] eog-image: fix double-free of eog image status mutex
- Date: Tue, 4 Jan 2022 22:52:37 +0000 (UTC)
commit 4d645c2035b3ca4917326c186e6c00154acb1ed0
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Tue Jan 4 19:48:52 2022 +0100
eog-image: fix double-free of eog image status mutex
The mutex will now only be freed in eog_image_finalize().
The eog_image_dispose() will be called before finalize(), and dispose()
may even be called multiple times.
Program terminated with signal SIGSEGV, Segmentation fault.
at /usr/src/lib/libc/thread/rthread_mutex.c:81
81 /usr/src/lib/libc/thread/rthread_mutex.c: No such file or directory.
[Current thread is 1 (process 353323)]
(gdb) bt
at /usr/src/lib/libc/thread/rthread_mutex.c:81
Signed-off-by: Antoine Jacoutot <ajacoutot gnome org>
src/eog-image.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/src/eog-image.c b/src/eog-image.c
index c10dc40e..25c5c814 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -192,8 +192,6 @@ eog_image_dispose (GObject *object)
priv->file_type = NULL;
}
- g_mutex_clear (&priv->status_mutex);
-
if (priv->trans) {
g_object_unref (priv->trans);
priv->trans = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]