Commit 88f3ade6 authored by Justin Kim's avatar Justin Kim Committed by Zeeshan Ali

demo: Remove unnecessary g_variant_unref call

It's not required to unref for the return of gclue_location_get_timestamp.

https://bugs.freedesktop.org/show_bug.cgi?id=96178
parent 4c011afc
...@@ -105,7 +105,6 @@ print_location (GClueSimple *simple) ...@@ -105,7 +105,6 @@ print_location (GClueSimple *simple)
gchar *str; gchar *str;
g_variant_get (timestamp, "(tt)", &tv.tv_sec, &tv.tv_usec); g_variant_get (timestamp, "(tt)", &tv.tv_sec, &tv.tv_usec);
g_variant_unref (timestamp);
date_time = g_date_time_new_from_timeval_local (&tv); date_time = g_date_time_new_from_timeval_local (&tv);
str = g_date_time_format str = g_date_time_format
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment