Skip to content

GWindow can't currently be freed #14

@dmalan

Description

@dmalan

It seems a GWindow can't currently be freed:

There does seem to be a generic remove function, defined in StanfordCSLib/src/generic.c, right after the generic add function. However, it looks to me like the handling of GWindow by remove is buggy. The relevant branch of remove reads:

   if (endsWith(type, "GWindow")) {
      va_start(args, arg);
      gobj = va_arg(args, GObject);
      va_end(args);
      removeGWindow((GWindow) arg, key);
   }

At this point in the code, key is uninitialized. I believe the intent was to pass gobj to removeGWindow, not key.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions