Fix two memory leaks

This commit is contained in:
Moritz Lipp 2012-05-08 17:02:18 +02:00
parent 83f55ff24a
commit 02582692f9
2 changed files with 3 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}