Commit 2d85f966 authored by Michael Gerbracht's avatar Michael Gerbracht Committed by ROOL

Guard against recurring errors upon failing to show a delayed object

  After delivering a Scale_AboutToBeShown event, any error would be repeated.
  Also fixes a memory leak in case of an error.
  Based on a description of a similar bug in the Select change logs.
parent 19beeca4
......@@ -185,8 +185,7 @@ _kernel_oserror *show_actual (void) {
global_next->flags |= ScaleInternal_IsShowing;
if ((e = _kernel_swi (Toolbox_ShowObject, &regs, &regs)) != NULL)
return e;
e = _kernel_swi (Toolbox_ShowObject, &regs, &regs);
if (show_info) {
mem_freek (show_info);
......@@ -194,6 +193,6 @@ _kernel_oserror *show_actual (void) {
global_next = NULL;
return NULL;
return e;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment