[gnome-builder] Gettext: fix invalid free of unowned object
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] Gettext: fix invalid free of unowned object
- Date: Mon, 18 Jul 2016 21:33:10 +0000 (UTC)
commit 7e9809984d318ad9f9aec557f59e3b7cdc1add0b
Author: Giovanni Campagna <gcampagn cs stanford edu>
Date: Mon Jul 18 23:28:30 2016 +0200
Gettext: fix invalid free of unowned object
g_subprocess_get_stderr_pipe is (transfer none), so we cannot
assign it to an autoptr variable, as that will attempt to release
the reference when going out of scope.
https://bugzilla.gnome.org/show_bug.cgi?id=768935
plugins/gettext/ide-gettext-diagnostic-provider.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/gettext/ide-gettext-diagnostic-provider.c
b/plugins/gettext/ide-gettext-diagnostic-provider.c
index e7a9c51..892401e 100644
--- a/plugins/gettext/ide-gettext-diagnostic-provider.c
+++ b/plugins/gettext/ide-gettext-diagnostic-provider.c
@@ -282,7 +282,7 @@ subprocess_wait_cb (GObject *object,
g_autoptr(GTask) task = user_data;
g_autoptr(GPtrArray) array = NULL;
g_autoptr(GDataInputStream) stderr_data_input = NULL;
- g_autoptr(GInputStream) stderr_input = NULL;
+ GInputStream *stderr_input = NULL;
g_autoptr(IdeGettextDiagnostics) diags = NULL;
TranslationUnit *unit;
GError *error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]