search for: wxbitmap_free

Displaying 1 result from an estimated 1 matches for "wxbitmap_free".

Did you mean: bitmap_free
2005 May 02
3
where is destructors?
...=================================================== --- src/bitmap.cpp 30 Nov 2003 22:54:48 -0000 1.2 +++ src/bitmap.cpp 2 May 2005 11:11:58 -0000 @@ -32,10 +32,16 @@ rb_define_method(rubyClass, "convert_to_image", VALUEFUNC(WxBitmap::ConvertToImage), 0); } +void WxBitmap_free(wxBitmap *bmp) { + if(bmp) { + delete bmp; + }; +}; + VALUE WxBitmap::alloc(VALUE self) { - return Data_Wrap_Struct(self, 0, 0, 0); + return Data_Wrap_Struct(self, 0, WxBitmap_free, 0); } VALUE ================================================================ -- Dmitry...