summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2013-03-01 09:20:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2013-03-01 09:20:43 (GMT)
commit80a2bc2ab0f8f831a45bba4bbbbad4b15cbf0645 (patch)
tree704e87f3f08b88606e559869d1c32c7e8b418d04 /plugins/pychrysa/analysis
parentf95e0761e1284b7ab48244452f56d96803c48b87 (diff)
Fixed GCC warnings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@342 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/pychrysa/analysis')
-rw-r--r--plugins/pychrysa/analysis/roptions.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/pychrysa/analysis/roptions.c b/plugins/pychrysa/analysis/roptions.c
index a2b72e1..5423f93 100644
--- a/plugins/pychrysa/analysis/roptions.c
+++ b/plugins/pychrysa/analysis/roptions.c
@@ -25,6 +25,9 @@
#include "roptions.h"
+#include <pygobject.h>
+
+
#include "../format/executable.h"
@@ -89,7 +92,8 @@ static PyObject *py_rendering_options_new(PyTypeObject *type, PyObject *args, Py
result = (py_rendering_options *)type->tp_alloc(type, 0);
- _executable = py_executable_get_glib_instance(executable);
+ _executable = G_EXE_FORMAT(pygobject_get(executable));
+ if (_executable == NULL) return NULL;
g_object_ref(G_OBJECT(_executable));
result->glib = g_rendering_options_new(_executable);