[retro-gtk/wip/aplazas/0.12] test



commit b9fb3a79026e591a9014361763a7587e97fc9d9b
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Sep 10 08:03:23 2017 +0200

    test

 retro-gtk/retro-game-info.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/retro-gtk/retro-game-info.c b/retro-gtk/retro-game-info.c
index da14158..6b88d38 100644
--- a/retro-gtk/retro-game-info.c
+++ b/retro-gtk/retro-game-info.c
@@ -15,6 +15,9 @@ retro_game_info_new (const gchar *file_name)
 
   self->path = g_strdup (file_name);
   self->data = g_new0 (guint8, 0);
+  g_message ("retro_game_info_new path: %p %s", self->path, self->path);
+  g_message ("retro_game_info_new meta: %p %s", self->meta, self->meta);
+
   return self;
 }
 
@@ -30,6 +33,9 @@ retro_game_info_new_with_data (const gchar  *file_name,
 
   self->path = g_strdup (file_name);
   g_file_get_contents (file_name, (gchar **) &self->data, &self->size, error);
+  g_message ("retro_game_info_new_with_data path: %p %s", self->path, self->path);
+  g_message ("retro_game_info_new_with_data meta: %p %s", self->meta, self->meta);
+
   return self;
 }
 
@@ -46,6 +52,8 @@ retro_game_info_copy (RetroGameInfo *self)
   copy->data = g_memdup (self, self->size);
   copy->size = self->size;
   copy->meta = g_strdup (self->meta);
+  g_message ("retro_game_info_copy path: %p %s", self->path, self->path);
+  g_message ("retro_game_info_copy meta: %p %s", self->meta, self->meta);
 
   return copy;
 }
@@ -55,8 +63,14 @@ retro_game_info_free (RetroGameInfo *self)
 {
   g_return_if_fail (self);
 
+  g_message ("retro_game_info_free self: %p", self);
+  g_message ("retro_game_info_free path: %p %s", self->path, self->path);
+  g_message ("retro_game_info_free meta: %p %s", self->meta, self->meta);
+  g_message ("path: %p", self->path);
   g_free (self->path);
+  g_message ("data: %p", self->data);
   g_free (self->data);
+  g_message ("meta: %p", self->meta);
   g_free (self->meta);
 
   g_slice_free (RetroGameInfo, self);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]