Skip to content

GWindow can't currently be freed #14

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions