[gnome-builder: 6/11] debuggerui: hold view reference during async operation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder: 6/11] debuggerui: hold view reference during async operation
- Date: Sat, 4 Jul 2020 17:28:56 +0000 (UTC)
commit 32c73fc1391bf089408fc71156207612784a44da
Author: Christian Hergert <chergert redhat com>
Date: Sat Jul 4 10:14:23 2020 -0700
debuggerui: hold view reference during async operation
src/plugins/debuggerui/ide-debugger-log-view.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/debuggerui/ide-debugger-log-view.c b/src/plugins/debuggerui/ide-debugger-log-view.c
index 05dd2039c..24ba07fdf 100644
--- a/src/plugins/debuggerui/ide-debugger-log-view.c
+++ b/src/plugins/debuggerui/ide-debugger-log-view.c
@@ -102,7 +102,7 @@ on_entry_activate_cb (GObject *source,
GAsyncResult *res,
gpointer user_data)
{
- IdeDebuggerLogView *self = (IdeDebuggerLogView *)user_data;
+ g_autoptr(IdeDebuggerLogView) self = user_data;
g_return_if_fail (IDE_IS_DEBUGGER_LOG_VIEW (self));
g_return_if_fail (IDE_IS_TASK (res));
@@ -123,7 +123,7 @@ on_entry_activate (IdeDebuggerLogView *self,
gtk_entry_get_text (entry),
NULL,
on_entry_activate_cb,
- self);
+ g_object_ref (self));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]