[gnome-builder/gnome-builder-3-28] configuration: make ide_configuration_real_get_runtime return an unowned IdeRuntime
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-28] configuration: make ide_configuration_real_get_runtime return an unowned IdeRuntime
- Date: Tue, 20 Mar 2018 20:30:01 +0000 (UTC)
commit 0393714fbadbb092e2be2636104d9714f818e660
Author: Corentin Noël <corentin noel collabora co uk>
Date: Tue Mar 20 11:57:30 2018 +0000
configuration: make ide_configuration_real_get_runtime return an unowned IdeRuntime
src/libide/config/ide-configuration.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/libide/config/ide-configuration.c b/src/libide/config/ide-configuration.c
index 71b43c082..e86a6a3cf 100644
--- a/src/libide/config/ide-configuration.c
+++ b/src/libide/config/ide-configuration.c
@@ -138,10 +138,7 @@ ide_configuration_real_get_runtime (IdeConfiguration *self)
{
IdeContext *context = ide_object_get_context (IDE_OBJECT (self));
IdeRuntimeManager *runtime_manager = ide_context_get_runtime_manager (context);
- IdeRuntime *runtime = ide_runtime_manager_get_runtime (runtime_manager, priv->runtime_id);
-
- if (runtime != NULL)
- return g_object_ref (runtime);
+ return ide_runtime_manager_get_runtime (runtime_manager, priv->runtime_id);;
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]