]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/tex2rtf/src/tex2any.h
Lots more memory/resource leak fixes. There are still more, but this solves about...
[wxWidgets.git] / utils / tex2rtf / src / tex2any.h
index 37d25fb7b8622be4a7263632f246b78a8558607d..734c28dcd3548af426db8c9c89cd684da6e329b3 100644 (file)
@@ -387,21 +387,10 @@ class TexRef: public wxObject
   char *refFile;       // Reference filename (can be NULL)
   char *sectionNumber; // Section or figure number (as a string)
   char *sectionName; // name e.g. 'section'
-  TexRef(char *label, char *file, char *section, char *sectionN = NULL)
-  {
-    refLabel = copystring(label);
-    refFile = file ? copystring(file) : (char*) NULL;
-    sectionNumber = section ? copystring(section) : copystring("??");
-    sectionName = sectionN ? copystring(sectionN) : copystring("??");
-  }
-  ~TexRef(void)
-  {
-    delete[] refLabel; delete[] refFile; delete[] sectionNumber; delete[] sectionName;
-  }
+  TexRef(char *label, char *file, char *section, char *sectionN = NULL);
+  ~TexRef(void);
 };
 
-extern wxHashTable TexReferences;
-
 /*
  * Add a reference
  *
@@ -511,6 +500,7 @@ class CustomMacro: public wxObject
     else
       macroBody = NULL;
   }
+  ~CustomMacro();
 };
 
 bool ReadCustomMacros(char *filename);