From a2956aa85f1ba63dc45166d6418be8d50a298a10 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 15 Dec 2014 08:33:19 +0100 Subject: fixup: the spawn context's GError must not be memory-managed by the state object this is because ownership of the GError may be passed to GlibError() --- src/spawn.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/spawn.cpp') diff --git a/src/spawn.cpp b/src/spawn.cpp index f5b7f2f..9039975 100644 --- a/src/spawn.cpp +++ b/src/spawn.cpp @@ -219,8 +219,6 @@ StateExecuteCommand::~StateExecuteCommand() { g_main_loop_unref(ctx.mainloop); g_main_context_unref(ctx.mainctx); - if (ctx.error) - g_error_free(ctx.error); } void @@ -418,8 +416,6 @@ gerror: undo.push_var(register_argument) = NULL; g_error_free(ctx.error); - ctx.error = NULL; - return &States::start; } -- cgit v1.2.3