cvs: pecl /printer printer.c

From: Date: Mon, 02 Aug 2004 20:35:15 +0000
Subject: cvs: pecl /printer printer.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1619@lists.php.net to get a copy of this message
fmk Mon Aug 2 16:35:15 2004 EDT Modified files: /pecl/printer printer.c Log: Adding missing efree's http://cvs.php.net/diff.php/pecl/printer/printer.c?r1=1.30&r2=1.31&ty=u Index: pecl/printer/printer.c diff -u pecl/printer/printer.c:1.30 pecl/printer/printer.c:1.31 --- pecl/printer/printer.c:1.30 Mon Aug 2 16:31:23 2004 +++ pecl/printer/printer.c Mon Aug 2 16:35:15 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: printer.c,v 1.30 2004/08/02 20:31:23 fmk Exp $ */ +/* $Id: printer.c,v 1.31 2004/08/02 20:35:15 fmk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -109,7 +109,7 @@ php_info_print_table_row(2, "Printer Support", "enabled"); php_info_print_table_row(2, "Default printing device", PRINTERG(default_printer) ? PRINTERG(default_printer) : "<b>not detected</b>"); php_info_print_table_row(2, "Module state", "working"); - php_info_print_table_row(2, "RCS Version", "$Id: printer.c,v 1.30 2004/08/02 20:31:23 fmk Exp $"); + php_info_print_table_row(2, "RCS Version", "$Id: printer.c,v 1.31 2004/08/02 20:35:15 fmk Exp $"); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); } @@ -1420,6 +1420,12 @@ } if (p->info.lpszDatatype) { efree((char *)p->info.lpszDatatype); + } + if (p->pi2) { + if (p->pi2->pDevMode) { + efree((char *)p->pi2->pDevMode); + } + efree((char *)p->pi2); } efree(p); }

« previous php.pecl.cvs (#1619) next »