GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 4d4ef1a8 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Lars-Peter Clausen

Ensure that the python drawables gimp drawable is set. (pf_dealloc): Don't

2008-08-26  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-tile.c
	(pf_init): Ensure that the python drawables gimp drawable is set.
	(pf_dealloc): Don't crash if the pixel fetchers init function failed.


svn path=/trunk/; revision=26784
parent 6e764915
2008-08-26 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/pygimp-tile.c
(pf_init): Ensure that the python drawables gimp drawable is set.
(pf_dealloc): Don't crash if the pixel fetchers init function failed.
2008-08-26 Sven Neumann <sven@gimp.org>
* app/base/pixel-surround.c: updated documentation.
......
......@@ -902,7 +902,8 @@ pf_dealloc(PyGimpPixelFetcher *self)
{
gimp_pixel_fetcher_destroy(self->pf);
Py_DECREF(self->drawable);
Py_XDECREF(self->drawable);
PyObject_DEL(self);
}
......@@ -942,6 +943,9 @@ pf_init(PyGimpPixelFetcher *self, PyObject *args, PyObject *kwargs)
&edge_mode))
return -1;
if(!drw->drawable)
drw->drawable = gimp_drawable_get(drw->ID);
self->pf = gimp_pixel_fetcher_new(drw->drawable, shadow);
Py_INCREF(drw);
......
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