From: kramm Date: Fri, 4 May 2007 13:20:45 +0000 (+0000) Subject: made _save function discard the underlying object X-Git-Tag: buttons-working~679 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=01e7601c1b7be247c2060255ea59ca866ea4345f;hp=436191adfc1794661e59c87c88ab3b5830d6c4f8;p=swftools.git made _save function discard the underlying object --- 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); }