gperl_callback_invoke userdata copy



While nosing around for the tree filter modify callback I saw the
comment in gperl_callback_invoke about needing or not needing to copy
the userdata arg.  I came up with the degenerate program below; it
unhooks the GtkLinkButton callback from within a callback, and the
userdata arg goes away,

    userdata: ARRAY(0x83c131c)
    Use of uninitialized value in print at t-callback-data.pl line 15.
    userdata:

I wonder if it does, alas, have to do a copy to preserve the args for a
case like that.

Attachment: t-callback-data.pl
Description: Text Data

Attachment: GClosure.xs.invoke-copy.diff
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]