I've got a plugin that attaches to an existing (displayed) image,
and replaces it with a different image:

  gint newImage = gimp_file_load(...);
  gimp_displays_reconnect(oldImage, newImage);
  gimp_image_delete(oldImage);

Problem is that (I think) the new image now has two references, so
when the user closes the image display the image is not deleted.
If that's right, is there any way to remove the extra reference?
If not, what's going on?

--
David Hodson  --  this night wounds time

_______________________________________________
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

Reply via email to