Commit 6cb1cb62 authored by Mathieu Malaterre's avatar Mathieu Malaterre

ENH: Fix mem leaks

parent 30e7495d
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <math.h> #include <math.h>
vtkCxxRevisionMacro(vtkCarbonRenderWindow, "1.28"); vtkCxxRevisionMacro(vtkCarbonRenderWindow, "1.29");
vtkStandardNewMacro(vtkCarbonRenderWindow); vtkStandardNewMacro(vtkCarbonRenderWindow);
...@@ -346,7 +346,6 @@ vtkCarbonRenderWindow::vtkCarbonRenderWindow() ...@@ -346,7 +346,6 @@ vtkCarbonRenderWindow::vtkCarbonRenderWindow()
this->ParentId = 0; this->ParentId = 0;
this->StereoType = 0; this->StereoType = 0;
this->SetWindowName("Visualization Toolkit - Carbon"); this->SetWindowName("Visualization Toolkit - Carbon");
this->TextureResourceIds = vtkIdList::New();
this->CursorHidden = 0; this->CursorHidden = 0;
this->ForceMakeCurrent = 0; this->ForceMakeCurrent = 0;
} }
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
#include <OpenGL/gl.h> // Carbon and MAC specific #include <OpenGL/gl.h> // Carbon and MAC specific
#include <AGL/agl.h> // Carbon and MAC specific #include <AGL/agl.h> // Carbon and MAC specific
class vtkIdList;
class VTK_RENDERING_EXPORT vtkCarbonRenderWindow : public vtkOpenGLRenderWindow class VTK_RENDERING_EXPORT vtkCarbonRenderWindow : public vtkOpenGLRenderWindow
{ {
public: public:
...@@ -111,7 +109,7 @@ public: ...@@ -111,7 +109,7 @@ public:
void SetNextWindowInfo(char *) void SetNextWindowInfo(char *)
{ {
vtkWarningMacro("SetNextWindowInfo not implemented (WindowRemap not implemented)."); vtkWarningMacro("SetNextWindowInfo not implemented (WindowRemap not implemented).");
} }
//BTX //BTX
......
...@@ -238,7 +238,6 @@ protected: ...@@ -238,7 +238,6 @@ protected:
int OwnWindow; int OwnWindow;
int ScreenSize[2]; int ScreenSize[2];
int MultiSamples; int MultiSamples;
vtkIdList *TextureResourceIds;
// the following is used to support rendering into memory // the following is used to support rendering into memory
// void *MemoryDataHeader; // void *MemoryDataHeader;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#define id Id // since id is a reserved token in ObjC and is used a _lot_ in vtk #define id Id // since id is a reserved token in ObjC and is used a _lot_ in vtk
vtkCxxRevisionMacro(vtkCocoaRenderWindow, "1.21"); vtkCxxRevisionMacro(vtkCocoaRenderWindow, "1.22");
vtkStandardNewMacro(vtkCocoaRenderWindow); vtkStandardNewMacro(vtkCocoaRenderWindow);
...@@ -47,7 +47,6 @@ vtkCocoaRenderWindow::vtkCocoaRenderWindow() ...@@ -47,7 +47,6 @@ vtkCocoaRenderWindow::vtkCocoaRenderWindow()
this->DeviceContext = 0; // hsr this->DeviceContext = 0; // hsr
this->StereoType = 0; this->StereoType = 0;
this->SetWindowName("Visualization Toolkit - Cocoa"); this->SetWindowName("Visualization Toolkit - Cocoa");
this->TextureResourceIds = vtkIdList::New();
this->CursorHidden = 0; this->CursorHidden = 0;
this->ForceMakeCurrent = 0; this->ForceMakeCurrent = 0;
this->Capabilities = 0; this->Capabilities = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment