[gimp/gimp-2-10] app: in GimpBacktrace Windows backend, return NULL backtrace if not initialized
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: in GimpBacktrace Windows backend, return NULL backtrace if not initialized
- Date: Wed, 29 Jul 2020 22:09:23 +0000 (UTC)
commit 5fc30e59d3be2b6a83a902f54168dc1efd8c464b
Author: Ell <ell_se yahoo com>
Date: Thu Jul 30 00:13:05 2020 +0300
app: in GimpBacktrace Windows backend, return NULL backtrace if not initialized
In the Windows implementation of gimp_backtrace_new(), return NULL
if the backend is not fully initialized.
(cherry picked from commit 95b69dd77b172d9f25c4eaae2111b076f14f39c8)
app/core/gimpbacktrace-windows.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/app/core/gimpbacktrace-windows.c b/app/core/gimpbacktrace-windows.c
index 2355bfe5d1..da1fb734e9 100644
--- a/app/core/gimpbacktrace-windows.c
+++ b/app/core/gimpbacktrace-windows.c
@@ -370,6 +370,9 @@ gimp_backtrace_new (gboolean include_current_thread)
DWORD tid;
gint i;
+ if (! initialized)
+ return NULL;
+
g_mutex_lock (&mutex);
if (! gimp_backtrace_enumerate_threads ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]