Panda3D
bioStreamPtr.cxx
1 // Filename: bioStreamPtr.cxx
2 // Created by: drose (15Oct02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "bioStreamPtr.h"
16 
17 #ifdef HAVE_OPENSSL
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: BioStreamPtr::Destructor
21 // Access: Public
22 // Description:
23 ////////////////////////////////////////////////////////////////////
24 BioStreamPtr::
25 ~BioStreamPtr() {
26  if (_stream != (BioStream *)NULL) {
27  delete _stream;
28  _stream = (BioStream *)NULL;
29  }
30 }
31 
32 #endif // HAVE_OPENSSL