[gnome-builder] work with directories
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] work with directories
- Date: Tue, 24 Mar 2015 00:30:33 +0000 (UTC)
commit 0696bc047a40ab4dd69ccc49b57c80232cb9360f
Author: Christian Hergert <christian hergert me>
Date: Fri Mar 20 02:41:38 2015 -0700
work with directories
libide/autotools/ide-autotools-build-system.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libide/autotools/ide-autotools-build-system.c b/libide/autotools/ide-autotools-build-system.c
index 082f933..2643120 100644
--- a/libide/autotools/ide-autotools-build-system.c
+++ b/libide/autotools/ide-autotools-build-system.c
@@ -126,7 +126,7 @@ ide_autotools_build_system_discover_file_worker (GTask *task,
return;
}
- parent = g_file_get_parent (file);
+ parent = g_object_ref (file);
while (parent != NULL)
{
@@ -158,6 +158,8 @@ ide_autotools_build_system_discover_file_worker (GTask *task,
g_clear_object (&tmp);
}
+ g_clear_object (&parent);
+
g_task_return_new_error (task,
G_IO_ERROR,
G_IO_ERROR_NOT_FOUND,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]