• XDestroyImage()

    From Muttley@dastardlyhq.com@21:1/5 to All on Sun Nov 12 15:59:36 2023
    XPost: comp.unix.programmer

    Hello

    I'm a bit uncertain from the man page and from googling around whether XDestroyImage() only frees the XImage structure created by XCreateImage()
    or whether it also frees the user allocated memory that gets passed into XCreateImage().

    Anyone know?

    Thanks for any help

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Scott Lurndal@21:1/5 to Muttley@dastardlyhq.com on Sun Nov 12 17:34:34 2023
    XPost: comp.unix.programmer

    Muttley@dastardlyhq.com writes:
    Hello

    I'm a bit uncertain from the man page and from googling around whether >XDestroyImage() only frees the XImage structure created by XCreateImage()
    or whether it also frees the user allocated memory that gets passed into >XCreateImage().

    Anyone know?

    Kalevi answered.

    To obtain an answer this question you could have run the application under valgrind - it would tell you about any memory that hadn't been
    deallocated at exit (using the leak check option).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)