[easytag/wip/gmodule-mp4v2: 2/5] WIP Unref the EtMP4Tag after use



commit 1bfdb8115c9dabfe93b30dbe242d2b72689cfdb2
Author: David King <amigadave amigadave com>
Date:   Tue Jun 4 08:31:22 2013 +0100

    WIP Unref the EtMP4Tag after use
    
    When marging to master, squash this into the previous commit. Even
    better would be to instantiate EtMP4Tag once and keep the instance
    around until program exit.

 src/et_core.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/et_core.c b/src/et_core.c
index 0832cfd..9c13984 100644
--- a/src/et_core.c
+++ b/src/et_core.c
@@ -528,6 +528,8 @@ GList *ET_Add_File_To_File_List (gchar *filename)
                 {
                     g_warning ("Failed to load module");
                 }
+
+                g_object_unref (tag);
             }
             break;
 #endif
@@ -592,6 +594,8 @@ GList *ET_Add_File_To_File_List (gchar *filename)
                 {
                     g_warning ("Failed to load module");
                 }
+
+                g_object_unref (tag);
             }
             break;
 #endif
@@ -3895,6 +3899,8 @@ gboolean ET_Save_File_Tag_To_HD (ET_File *ETFile)
                     g_warning ("Failed to load module");
                     state = FALSE;
                 }
+
+                g_object_unref (tag);
             }
             break;
 #endif


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