summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-09-18 07:08:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-09-18 07:08:35 (GMT)
commit7abda358d11810e464f2bf51f8333836ddc17e90 (patch)
tree37a4b9dda883de13f729ed60eab11b1a4e3251ad /src/analysis
parent264883a204ff89fcf53bb9c07bac1248096af0ef (diff)
Updated the API used to load binary contents.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/loading.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analysis/loading.c b/src/analysis/loading.c
index 7e2f9ee..3a53657 100644
--- a/src/analysis/loading.c
+++ b/src/analysis/loading.c
@@ -827,6 +827,7 @@ void g_content_explorer_populate_group(GContentExplorer *explorer, wgroup_id_t w
group->contents = (GBinContent **)realloc(group->contents, ++group->count * sizeof(GBinContent *));
group->contents[group->count - 1] = content;
+ g_object_ref(G_OBJECT(content));
/* Relancement des explorations */
@@ -1426,6 +1427,7 @@ void g_content_resolver_add_detected(GContentResolver *resolver, wgroup_id_t wid
group->loaded = (GLoadedContent **)realloc(group->loaded, ++group->count * sizeof(GLoadedContent *));
group->loaded[group->count - 1] = loaded;
+ g_object_ref(G_OBJECT(loaded));
g_mutex_unlock(&resolver->mutex);