summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis/contents/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/analysis/contents/memory.c')
-rw-r--r--plugins/pychrysalide/analysis/contents/memory.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/pychrysalide/analysis/contents/memory.c b/plugins/pychrysalide/analysis/contents/memory.c
index 37b098d..4782445 100644
--- a/plugins/pychrysalide/analysis/contents/memory.c
+++ b/plugins/pychrysalide/analysis/contents/memory.c
@@ -31,6 +31,7 @@
#include <analysis/contents/memory.h>
+#include "../content.h"
#include "../storage/serialize.h"
#include "../../access.h"
#include "../../helpers.h"
@@ -153,7 +154,7 @@ PyTypeObject *get_python_memory_content_type(void)
bool ensure_python_memory_content_is_registered(void)
{
- PyTypeObject *type; /* Type Python 'MemoryContent' */
+ PyTypeObject *type; /* Type Python 'MemoryContent' */
PyObject *module; /* Module à recompléter */
PyObject *dict; /* Dictionnaire du module */
@@ -168,6 +169,9 @@ bool ensure_python_memory_content_is_registered(void)
if (!ensure_python_serializable_object_is_registered())
return false;
+ if (!ensure_python_binary_content_is_registered())
+ return false;
+
if (!register_class_for_pygobject(dict, G_TYPE_MEMORY_CONTENT, type, &PyGObject_Type))
return false;