]> Dogcows Code - chaz/openbox/blobdiff - openbox/debug.c
Merge branch 'backport' into work
[chaz/openbox] / openbox / debug.c
index b44163263f9a98a3e551bff1d49ca27e85c8777c..5a976d0c1910b3c5c634eee336d20d57e7758789 100644 (file)
@@ -48,6 +48,8 @@ void ob_debug_startup(void)
     else {
         gchar *name = g_build_filename(obt_paths_cache_home(p),
                                        "openbox", "openbox.log", NULL);
+        /* unlink it before opening to remove competition */
+        unlink(name);
         log_file = fopen(name, "w");
         g_free(name);
     }
@@ -62,6 +64,7 @@ void ob_debug_startup(void)
         g_log_set_handler("Openbox", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL |
                           G_LOG_FLAG_RECURSION, log_handler, NULL);
 
+    obt_paths_unref(p);
     g_free(dir);
 }
 
This page took 0.020254 seconds and 4 git commands to generate.