Revert "cairo image crash debugging" and "initialize image data"
This reverts commitdfdb91b429
and commit188d766757
. despite earlier assumptions the code is correct and there is likely a memory corruption elsewhere.
This commit is contained in:
parent
dfdb91b429
commit
fee8de9787
@ -47,7 +47,6 @@ public:
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
virtual ~Data () {
|
virtual ~Data () {
|
||||||
std::cerr << "Data @ " << this << " being deleted, data ptr = " << data << " cb = " << destroy_callback << std::endl;
|
|
||||||
if (destroy_callback) {
|
if (destroy_callback) {
|
||||||
destroy_callback(data, destroy_arg);
|
destroy_callback(data, destroy_arg);
|
||||||
} else {
|
} else {
|
||||||
|
@ -29,8 +29,6 @@ Image::Image (Group* group, Cairo::Format fmt, int width, int height)
|
|||||||
, _height (height)
|
, _height (height)
|
||||||
, _need_render (false)
|
, _need_render (false)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<Data> d0 (new Data (NULL, 0, 0, 0, _format)); _current = d0;
|
|
||||||
boost::shared_ptr<Data> d1 (new Data (NULL, 0, 0, 0, _format)); _pending = d1;
|
|
||||||
DataReady.connect (data_connections, MISSING_INVALIDATOR, boost::bind (&Image::accept_data, this), gui_context());
|
DataReady.connect (data_connections, MISSING_INVALIDATOR, boost::bind (&Image::accept_data, this), gui_context());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user