X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/067cc12f8692c9567acb9d2e22aec24ac47a1913..42eabfd7f44835017b331f5ed9670d8cde35d7e1:/disobedience/queue-generic.c?ds=sidebyside diff --git a/disobedience/queue-generic.c b/disobedience/queue-generic.c index a2aa8ac..82bd939 100644 --- a/disobedience/queue-generic.c +++ b/disobedience/queue-generic.c @@ -438,6 +438,8 @@ void ql_new_queue(struct queuelike *ql, * This is used by ql_drag_motion() and ql_drag_data_received() to identify a * drop would or does land. It's important that they use the same code since * otherwise the visual feedback can be inconsistent with the actual effect! + * + * Remember to free the returned path. */ static GtkTreePath *ql_drop_path(GtkWidget *w, GtkTreeModel *model, @@ -718,6 +720,8 @@ static void ql_drag_data_received(GtkWidget attribute((unused)) *w, ql->drop(ql, tracks->nvec, tracks->vec, NULL, q); break; } + if(path) + gtk_tree_path_free(path); } /** @brief Initialize a @ref queuelike */