diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-01-18 20:35:24 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-01-18 20:35:24 +0000 |
commit | 5986afb6ab52d8d7a7d9b99b5788669624073405 (patch) | |
tree | ad7de188b22c53197f6feeaf2bebb79d817a7e3a /src/xine-engine/xine.c | |
parent | 0cd45017f1a362cd2a0baaf05398afb950c992d1 (diff) | |
download | xine-lib-5986afb6ab52d8d7a7d9b99b5788669624073405.tar.gz xine-lib-5986afb6ab52d8d7a7d9b99b5788669624073405.tar.bz2 |
xine_exit() can be called with xine_t object not initialized
CVS patchset: 3963
CVS date: 2003/01/18 20:35:24
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r-- | src/xine-engine/xine.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 1b77f7361..edb43e70e 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.c,v 1.221 2003/01/14 00:10:31 miguelfreitas Exp $ + * $Id: xine.c,v 1.222 2003/01/18 20:35:28 f1rmb Exp $ * * top-level xine functions * @@ -952,8 +952,12 @@ void xine_exit (xine_t *this) { this->log_buffers[i]->dispose (this->log_buffers[i]); dispose_plugins (this); - this->clock->exit (this->clock); - this->config->dispose(this->config); + + if(this->clock) + this->clock->exit (this->clock); + + if(this->config) + this->config->dispose(this->config); free (this); } |