app: don't leak UI manager in GimpToolPath

This commit is contained in:
Ell 2020-05-26 11:10:27 +03:00
parent 18d747611c
commit 10f9ee63c6
1 changed files with 4 additions and 1 deletions

View File

@ -318,10 +318,13 @@ gimp_tool_path_constructed (GObject *object)
static void
gimp_tool_path_dispose (GObject *object)
{
GimpToolPath *path = GIMP_TOOL_PATH (object);
GimpToolPath *path = GIMP_TOOL_PATH (object);
GimpToolPathPrivate *private = path->private;
gimp_tool_path_set_vectors (path, NULL);
g_clear_object (&private->ui_manager);
G_OBJECT_CLASS (parent_class)->dispose (object);
}