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 95b69dd77b
)
This commit is contained in:
@ -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 ())
|
||||
|
Reference in New Issue
Block a user