summaryrefslogtreecommitdiff
path: root/src/rost.c
diff options
context:
space:
mode:
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 */