From 02582692f9b252750ecc30f78596f4d1cbbc8516 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Tue, 8 May 2012 17:02:18 +0200 Subject: [PATCH] Fix two memory leaks --- database-plain.c | 1 + zathura.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/database-plain.c b/database-plain.c index 326c44d..3003c68 100644 --- a/database-plain.c +++ b/database-plain.c @@ -420,6 +420,7 @@ plain_get_fileinfo(zathura_database_t* db, const char* file, zathura_fileinfo_t* char* name = prepare_filename(file); if (g_key_file_has_group(priv->history, name) == FALSE) { + g_free(name); return false; } diff --git a/zathura.c b/zathura.c index 037d849..761b018 100644 --- a/zathura.c +++ b/zathura.c @@ -944,6 +944,8 @@ position_set_delayed_impl(gpointer data) set_adjustment(hadjustment, p->position_x); set_adjustment(vadjustment, p->position_y); + g_free(p); + return FALSE; }