Thanks. Added an error return.

On Dec 17, 5:14 pm, timeless <[email protected]> wrote:
> http://macfuse.googlecode.com/svn/trunk/filesystems/procfs/procfs.cc
>
> OPEN_HANDLER(proc__windows__screenshots__window)
> {
> ...
>     struct ProcfsWindowData *pwd =
>         (struct ProcfsWindowData *)malloc(sizeof(struct
> ProcfsWindowData));
>     if (!pwd) {
>         CFRelease(window_png);
> here you recognize a null pointer
>     }
> and here you dereference it:
>     pwd->window_png = window_png;
>
> it should return some error code (I haven't looked that up yet)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MacFUSE" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/macfuse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to