X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=OSX%2FXScreenSaverView.m;h=d483c8885ce70cd5de654ca2d7abd98143aea8c4;hp=528c4f6c5b0a36e3032445aea201d4a230a35957;hb=3243731044b944673630b55e16674c191b026f84;hpb=f0261d8acab611f3433160e4f07367b870439739 diff --git a/OSX/XScreenSaverView.m b/OSX/XScreenSaverView.m index 528c4f6c..d483c888 100644 --- a/OSX/XScreenSaverView.m +++ b/OSX/XScreenSaverView.m @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 2006, 2007 Jamie Zawinski +/* xscreensaver, Copyright (c) 2006-2009 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -81,7 +81,8 @@ int mono_p = 0; perror ("putenv"); abort(); } -// free (npath); // Oops, don't free this! putenv() does not copy it! + + /* Don't free (npath) -- MacOS's putenv() does not copy it. */ } @@ -101,7 +102,7 @@ int mono_p = 0; perror ("putenv"); abort(); } - free (env); + /* Don't free (env) -- MacOS's putenv() does not copy it. */ }