Fix T44689: New Depsgraph crash

Simple highschool rated issue -- uninitialized variable :)
This commit is contained in:
Sergey Sharybin 2015-05-13 14:05:31 +05:00
parent 1a0fb7e9ae
commit ae9e38c5ad
Notes: blender-bot 2023-02-14 09:08:31 +01:00
Referenced by issue #44689, New Depsgraph crash
2 changed files with 5 additions and 0 deletions

View File

@ -114,6 +114,10 @@ void TimeSourceDepsNode::tag_update(Depsgraph *graph)
/* Root Node ============================================== */
RootDepsNode::RootDepsNode() : time_source(NULL)
{
}
RootDepsNode::~RootDepsNode()
{
OBJECT_GUARDED_DELETE(time_source, TimeSourceDepsNode);

View File

@ -127,6 +127,7 @@ struct TimeSourceDepsNode : public DepsNode {
/* Root Node. */
struct RootDepsNode : public DepsNode {
RootDepsNode();
~RootDepsNode();
TimeSourceDepsNode *add_time_source(const string &name = "");