Skip to content

edit-pane: Don't unconditionally ref due date

Niels De Graef requested to merge feature/unref-fixes into master

gtd_task_get_due_date() can return a NULL-pointer, so we shouldn't just try to call g_date_time_ref() on it. Even if it doesn't return NULL, it's already (transfer full), so we shouldn't be doing an extra refcount increase in the first place.

Fixes a CRITICAL log message when setting a due date.

Merge request reports