From: Klaus R. <kre...@us...> - 2007-07-16 09:51:11
|
Update of /cvsroot/ming/ming/src/blocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22013/src/blocks Modified Files: protect.c Log Message: copy password. otherwise php test fails Index: protect.c =================================================================== RCS file: /cvsroot/ming/ming/src/blocks/protect.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** protect.c 10 Feb 2007 13:51:42 -0000 1.2 --- protect.c 16 Jul 2007 09:50:46 -0000 1.3 *************** *** 56,59 **** --- 56,61 ---- if( protect->out ) destroySWFOutput(protect->out ); + if( protect->Password ) + free(protect->Password); } *************** *** 71,75 **** protect->out = newSWFOutput(); ! protect->Password = password; return (SWFBlock)protect; --- 73,80 ---- protect->out = newSWFOutput(); ! if(password != NULL) ! protect->Password = strdup(password); ! else ! protect->Password = NULL; return (SWFBlock)protect; |