]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxGimmickView.h
set vectors of pointers (with many memory leak) as vectors of shared_ptr
[creaImageIO.git] / src2 / creaImageIOWxGimmickView.h
index 53dcf77c5e540a36f07a5baf1f71cae2e3f38a34..1325306da3eddd7468ff85e729d78ad1335496a0 100644 (file)
@@ -34,7 +34,7 @@ namespace creaImageIO
     typedef int EventType;
     
     /// Ctor
-    WxGimmickView(Gimmick*
+    WxGimmickView(boost::shared_ptr<Gimmick> 
                  wxWindow *parent, 
                  const wxWindowID id,
                  const wxPoint& pos, const wxSize& size,
@@ -138,7 +138,7 @@ namespace creaImageIO
     wxImageList *    mIcon;
     void CreateIconList();
     
-    Gimmick * mGimmick;
+    boost::shared_ptr<Gimmick> mGimmick;
        
        Listener* mListener;
     /// Callback for adding files