Browse Source

publish PfmVizzer destructor to fix leak

David Rose 9 years ago
parent
commit
c4d232b0be
2 changed files with 5 additions and 0 deletions
  1. 4 0
      panda/src/grutil/pfmVizzer.I
  2. 1 0
      panda/src/grutil/pfmVizzer.h

+ 4 - 0
panda/src/grutil/pfmVizzer.I

@@ -19,6 +19,10 @@ get_pfm() {
   return _pfm;
   return _pfm;
 }
 }
 
 
+INLINE PfmVizzer::
+~PfmVizzer() {
+}
+
 /**
 /**
  * Returns the reference to the PfmFile manipulated by this PfmVizzer.
  * Returns the reference to the PfmFile manipulated by this PfmVizzer.
  */
  */

+ 1 - 0
panda/src/grutil/pfmVizzer.h

@@ -30,6 +30,7 @@ class GeomVertexWriter;
 class EXPCL_PANDA_GRUTIL PfmVizzer {
 class EXPCL_PANDA_GRUTIL PfmVizzer {
 PUBLISHED:
 PUBLISHED:
   PfmVizzer(PfmFile &pfm);
   PfmVizzer(PfmFile &pfm);
+  INLINE ~PfmVizzer();
   INLINE PfmFile &get_pfm();
   INLINE PfmFile &get_pfm();
   INLINE const PfmFile &get_pfm() const;
   INLINE const PfmFile &get_pfm() const;