diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-11-04 22:02:31 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-11-04 22:02:31 (GMT) |
commit | 4bafbf79e8143941d744c9c47e6fc9216fcec47a (patch) | |
tree | e0dc679daaa255d289c84ab0630e42256ab7a58c /plugins/pychrysa/analysis | |
parent | 72da49fdf05285169a9465b34f7869dafc4715ec (diff) |
Fixed some bugs and defined some first test cases.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@604 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/pychrysa/analysis')
-rw-r--r-- | plugins/pychrysa/analysis/contents/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/pychrysa/analysis/contents/file.c b/plugins/pychrysa/analysis/contents/file.c index d356197..897561e 100644 --- a/plugins/pychrysa/analysis/contents/file.c +++ b/plugins/pychrysa/analysis/contents/file.c @@ -64,7 +64,9 @@ static PyObject *py_file_content_new(PyTypeObject *type, PyObject *args, PyObjec content = g_file_content_new(filename); result = pygobject_new(G_OBJECT(content)); - g_object_unref(content); + + if (content != NULL) + g_object_unref(content); return result; |