diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ufo-loop-task.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ufo-loop-task.c b/src/ufo-loop-task.c index 06054f1..696942b 100644 --- a/src/ufo-loop-task.c +++ b/src/ufo-loop-task.c @@ -166,7 +166,10 @@ ufo_loop_task_dispose (GObject *object) UfoLoopTaskPrivate *priv; priv = UFO_LOOP_TASK_GET_PRIVATE (object); - g_object_unref (priv->temporary); + if (priv->temporary) { + g_object_unref (priv->temporary); + priv->temporary = NULL; + } G_OBJECT_CLASS (ufo_loop_task_parent_class)->dispose (object); } |