Commit b5bf8428 authored by Sean Davis's avatar Sean Davis 🕶

Fix crash on clear history (lp 1214514)

parent 4e4801f5
......@@ -29,6 +29,7 @@
#include <string.h>
#include <glib.h>
#include <glib/gstdio.h>
#include "parole-rc-utils.h"
......@@ -100,9 +101,6 @@ void parole_clear_history_file_full(const gchar *relpath) {
history = xfce_resource_save_location(XFCE_RESOURCE_CACHE, relpath, FALSE);
if ( history ) {
FILE *f;
f = fopen(history, "w");
fclose(f);
g_free(history);
g_unlink (history);
}
}
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