summaryrefslogtreecommitdiff
path: root/gcr
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-17 21:38:14 +0100
committerStef Walter <stefw@gnome.org>2013-03-17 22:33:12 +0100
commitf25cc328066e7b6a7f960aea38ab6beb6f967a42 (patch)
tree3d3a3c5964fd46b1e64d4a39723df86e09fb4ae6 /gcr
parent35510b5d56b48c9491b32b70dd2710a2aa45ab26 (diff)
system-prompt: Fix racy segfault when prompter dismissed immediately
When the prompter (like gnome-shell) dismisses a prompt immediately there was a case when gcr would dereference a NULL pointer.
Diffstat (limited to 'gcr')
-rw-r--r--gcr/gcr-system-prompt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcr/gcr-system-prompt.c b/gcr/gcr-system-prompt.c
index b370b1c..25c6cd9 100644
--- a/gcr/gcr-system-prompt.c
+++ b/gcr/gcr-system-prompt.c
@@ -670,7 +670,6 @@ prompt_method_ready (GcrSystemPrompt *self,
res = g_object_ref (self->pv->pending);
g_clear_object (&self->pv->pending);
- g_simple_async_result_set_op_res_gpointer (res, NULL, NULL);
g_simple_async_result_complete (res);
g_object_unref (res);
}