git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
436191a
)
made _save function discard the underlying object
author
kramm
<kramm>
Fri, 4 May 2007 13:20:45 +0000
(13:20 +0000)
committer
kramm
<kramm>
Fri, 4 May 2007 13:20:45 +0000
(13:20 +0000)
lib/python/gfx.c
patch
|
blob
|
history
diff --git
a/lib/python/gfx.c
b/lib/python/gfx.c
index
336d162
..
016d1ce
100644
(file)
--- 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);
}