diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-12-15 08:33:19 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-12-15 08:33:19 +0100 |
commit | a2956aa85f1ba63dc45166d6418be8d50a298a10 (patch) | |
tree | a872e4f6664572a396a23a3e6ae9350ce7ef9677 /src/spawn.cpp | |
parent | 032ba5022655d1e66ddad3f568187bc46af66bd6 (diff) | |
download | sciteco-a2956aa85f1ba63dc45166d6418be8d50a298a10.tar.gz |
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()
Diffstat (limited to 'src/spawn.cpp')
-rw-r--r-- | src/spawn.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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; } |