[retro-gtk] game-info: Remove some free
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] game-info: Remove some free
- Date: Sun, 10 Sep 2017 06:28:13 +0000 (UTC)
commit 84db6cbeefd93588e408a1c7c6e1343dc4663854
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Sep 10 08:03:23 2017 +0200
game-info: Remove some free
This avoids uselessly trying to free an already freed RetroGameInfo.
https://bugzilla.gnome.org/show_bug.cgi?id=787492
retro-gtk/retro-core.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index d4f762d..e84d750 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -445,13 +445,9 @@ retro_core_load_discs (RetroCore *self,
path = g_file_get_path (file);
if (fullpath) {
- if (game_info != NULL)
- retro_game_info_free (game_info);
game_info = retro_game_info_new (path);
}
else {
- if (game_info != NULL)
- retro_game_info_free (game_info);
game_info = retro_game_info_new_with_data (path, &tmp_error);
if (G_UNLIKELY (tmp_error != NULL)) {
g_propagate_error (error, tmp_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]