summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-12-31 16:16:20 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-12-31 16:16:20 (GMT)
commit8599cd772627ed8f7c923615fe991808d3f5c882 (patch)
tree95f266197c63c51c4f6513e5575f935a63af6fa0 /src/core
parente0ab9498f78ee6b4fbbba25400d78436db682899 (diff)
Updated the ROP gadgets finder.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/global.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/global.c b/src/core/global.c
index c5f25c1..2185c3a 100644
--- a/src/core/global.c
+++ b/src/core/global.c
@@ -121,6 +121,10 @@ void set_current_project(GStudyProject *project)
GStudyProject *get_current_project(void)
{
+ assert(_project != NULL);
+
+ g_object_ref(G_OBJECT(_project));
+
return _project;
}