Use the DISOWN typemap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -64,8 +64,9 @@ public:
|
||||
virtual void SetImageList(wxImageList *imageList);
|
||||
|
||||
// as SetImageList() but we will delete the image list ourselves
|
||||
%addtofunc AssignImageList "args[1].thisown = 0"
|
||||
%apply SWIGTYPE *DISOWN { wxImageList *imageList };
|
||||
void AssignImageList(wxImageList *imageList);
|
||||
%clear wxImageList *imageList;
|
||||
|
||||
// get pointer (may be NULL) to the associated image list
|
||||
wxImageList* GetImageList() const;
|
||||
|
Reference in New Issue
Block a user