Commit 3045a75d authored by Stephan Arts's avatar Stephan Arts

Cleanup file-monitors on remove-all

parent 9d581bfe
......@@ -596,6 +596,10 @@ rstto_image_list_remove_all (RsttoImageList *image_list)
image_iter = g_list_next (image_iter);
}
g_list_foreach (image_list->priv->image_monitors, (GFunc)g_object_unref, NULL);
g_list_free (image_list->priv->image_monitors);
image_list->priv->image_monitors = NULL;
g_list_foreach (image_list->priv->images, (GFunc)g_object_unref, NULL);
g_list_free (image_list->priv->images);
image_list->priv->images = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment