From 01e7601c1b7be247c2060255ea59ca866ea4345f Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 4 May 2007 13:20:45 +0000 Subject: [PATCH] made _save function discard the underlying object --- lib/python/gfx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/python/gfx.c b/lib/python/gfx.c index 336d162..016d1ce 100644 --- a/lib/python/gfx.c +++ b/lib/python/gfx.c @@ -89,6 +89,7 @@ static PyObject* output_save(PyObject* _self, PyObject* args, PyObject* kwargs) return NULL; gfxresult_t*result = self->output_device->finish(self->output_device); + self->output_device = 0; if(result->save(result, filename) < 0) { return PY_ERROR("Couldn't write to %s", filename); } -- 1.7.10.4