[gnome-builder/wip/tintou/config-runtime-ownership: 2/2] 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/wip/tintou/config-runtime-ownership: 2/2] configuration: make ide_configuration_real_get_runtime return an unowned IdeRuntime
- Date: Tue, 20 Mar 2018 20:27:40 +0000 (UTC)
commit cf57e8d18d04065631247b6e16e881f600140ed0
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]