[gnome-builder] codeindex: don't dereference self
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] codeindex: don't dereference self
- Date: Wed, 6 Sep 2017 19:57:03 +0000 (UTC)
commit 9c2e875bef15d85f58cc35b03a573add6a5f8cc6
Author: Christian Hergert <chergert redhat com>
Date: Wed Sep 6 12:56:51 2017 -0700
codeindex: don't dereference self
We are stealing the pointer, so don't try to dereference it after it will
get cleared.
plugins/code-index/ide-code-index-service.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/code-index/ide-code-index-service.c b/plugins/code-index/ide-code-index-service.c
index d54a05d..7a9bcdf 100644
--- a/plugins/code-index/ide-code-index-service.c
+++ b/plugins/code-index/ide-code-index-service.c
@@ -160,6 +160,7 @@ ide_code_index_service_build_cb (GObject *object,
/* Index next directory */
if (!g_queue_is_empty (&self->build_queue))
{
+ IdeCodeIndexBuilder *builder = self->builder;
GCancellable *cancellable;
BuildData *peek;
@@ -167,7 +168,7 @@ ide_code_index_service_build_cb (GObject *object,
self->cancellable = cancellable = g_cancellable_new ();
- ide_code_index_builder_build_async (self->builder,
+ ide_code_index_builder_build_async (builder,
peek->directory,
peek->recursive,
cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]