Commit 5f4fe09b authored by Lisa St.John's avatar Lisa St.John Committed by Debarshi Ray

debug: Use g_auto*

#77
parent bd027d6f
...@@ -55,7 +55,7 @@ void photos_debug (guint flags, const char *fmt, ...) ...@@ -55,7 +55,7 @@ void photos_debug (guint flags, const char *fmt, ...)
{ {
if ((debug_flags & flags) != 0) if ((debug_flags & flags) != 0)
{ {
gchar *message; g_autofree gchar *message = NULL;
va_list ap; va_list ap;
va_start (ap, fmt); va_start (ap, fmt);
...@@ -63,7 +63,5 @@ void photos_debug (guint flags, const char *fmt, ...) ...@@ -63,7 +63,5 @@ void photos_debug (guint flags, const char *fmt, ...)
va_end (ap); va_end (ap);
g_debug ("%s", message); g_debug ("%s", message);
g_free (message);
} }
} }
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