summaryrefslogtreecommitdiff
path: root/src/rost.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-11-06 08:06:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-11-06 08:06:09 (GMT)
commit46b89f3a88b764eed43755f4b431a929291f2ef8 (patch)
tree2234f32f725f4229cec698bfd63f519efdafb246 /src/rost.c
parent72023cf93c4a2b27d4a6ed894e7e4f0f586cfc14 (diff)
Fix newly detected memory leaks.
Diffstat (limited to 'src/rost.c')
-rw-r--r--src/rost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rost.c b/src/rost.c
index 337b013..96fc8e1 100644
--- a/src/rost.c
+++ b/src/rost.c
@@ -451,10 +451,10 @@ int main(int argc, char **argv)
bad_file_content:
- g_object_unref(G_OBJECT(scanner));
-
}
+ g_clear_object(&scanner);
+
g_object_unref(G_OBJECT(options));
/* Sortie */