// this was causing a crash before
canvas_interface()->signal_dirty_preview().clear();
- synfig::info("CanvasView:~CanvasView(): Destructor Finished");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("CanvasView::~CanvasView(): Deleted");
}
CellRenderer_Time::~CellRenderer_Time()
{
- synfig::info("CellRenderer_Time::~CellRenderer_Time(): deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("CellRenderer_Time::~CellRenderer_Time(): Deleted");
}
void
CellRenderer_TimeTrack::~CellRenderer_TimeTrack()
{
- synfig::info("CellRenderer_TimeTrack::~CellRenderer_TimeTrack(): deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("CellRenderer_TimeTrack::~CellRenderer_TimeTrack(): Deleted");
}
void
CellRenderer_ValueBase::~CellRenderer_ValueBase()
{
-// synfig::info("CellRenderer_ValueBase::~CellRenderer_ValueBase(): deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("CellRenderer_ValueBase::~CellRenderer_ValueBase(): Deleted");
}
void
bool
DockDialog::close()
{
- synfig::info("DockDialog::close(): DELETED!");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("DockDialog::close(): Deleted");
+
empty_sig.disconnect();
//get_dock_book().clear();
delete this;
Duckmatic::~Duckmatic()
{
clear_ducks();
- //synfig::info("Duckmatic::~Duckmatic(): Deleted. Duck Count=%d",Duck::duck_count);
+
+ if (Duck::duck_count)
+ synfig::error("%d ducks not yet deleted!", Duck::duck_count);
+
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("Duckmatic::~Duckmatic(): Deleted");
}
void
HistoryTreeStore::~HistoryTreeStore()
{
- synfig::info("HistoryTreeStore::~HistoryTreeStore(): Deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("HistoryTreeStore::~HistoryTreeStore(): Deleted");
}
Glib::RefPtr<HistoryTreeStore>
KeyframeTree::~KeyframeTree()
{
- synfig::info("KeyframeTree::~KeyframeTree(): deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("KeyframeTree::~KeyframeTree(): Deleted");
}
void
KeyframeTreeStore::~KeyframeTreeStore()
{
- synfig::info("KeyframeTreeStore::~KeyframeTreeStore(): Deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("KeyframeTreeStore::~KeyframeTreeStore(): Deleted");
}
Glib::RefPtr<KeyframeTreeStore>
LayerGroupTree::~LayerGroupTree()
{
- synfig::info("LayerGroupTree::~LayerGroupTree(): deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("LayerGroupTree::~LayerGroupTree(): Deleted");
}
void
LayerGroupTreeStore::~LayerGroupTreeStore()
{
//clear();
- synfig::info("LayerGroupTreeStore::~LayerGroupTreeStore(): Deleted");
+
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("LayerGroupTreeStore::~LayerGroupTreeStore(): Deleted");
}
bool
changed_connection_list.back().disconnect();
changed_connection_list.pop_back();
}
- synfig::info("LayerParamTreeStore::~LayerParamTreeStore(): Deleted");
+
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("LayerParamTreeStore::~LayerParamTreeStore(): Deleted");
}
Glib::RefPtr<LayerParamTreeStore>
LayerTree::~LayerTree()
{
- synfig::info("LayerTree::~LayerTree(): Deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("LayerTree::~LayerTree(): Deleted");
}
Gtk::Widget*
LayerTreeStore::~LayerTreeStore()
{
- synfig::info("LayerTreeStore::~LayerTreeStore(): Deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("LayerTreeStore::~LayerTreeStore(): Deleted");
}
int
MetaDataTreeStore::~MetaDataTreeStore()
{
- synfig::info("MetaDataTreeStore::~MetaDataTreeStore(): Deleted");
-
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("MetaDataTreeStore::~MetaDataTreeStore(): Deleted");
}
Glib::RefPtr<MetaDataTreeStore>
CanvasInterface::~CanvasInterface()
{
- synfig::info("synfigapp::CanvasInterface::~CanvasInterface(): Deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("CanvasInterface::~CanvasInterface(): Deleted");
}
void
Instance::~Instance()
{
instance_map_.erase(canvas_);
- synfig::info("studio::Instance::~Instance(): Deleted");
-} // END of studio::Instance::~Instance()
+
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("Instance::~Instance(): Deleted");
+}
handle<CanvasInterface>
Instance::find_canvas_interface(synfig::Canvas::Handle canvas)