[Gimp-developer] Image reference count problem in plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux