Revision: 1944
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1944&view=rev
Author:   teuf
Date:     2008-02-02 10:16:28 -0800 (Sat, 02 Feb 2008)

Log Message:
-----------
Fix potential memory leaks

Modified Paths:
--------------
    libgpod/trunk/ChangeLog
    libgpod/trunk/src/db-artwork-parser.c

Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2008-01-29 23:33:29 UTC (rev 1943)
+++ libgpod/trunk/ChangeLog     2008-02-02 18:16:28 UTC (rev 1944)
@@ -1,3 +1,8 @@
+2008-02-30  Christophe Fergeau  <[EMAIL PROTECTED]>
+
+       * src/db-artwork-parser.c: add missing g_free that could cause
+       memory leaks
+
 2008-30-01  Christophe Fergeau  <[EMAIL PROTECTED]>
 
        Patch by Martin Aumueller       

Modified: libgpod/trunk/src/db-artwork-parser.c
===================================================================
--- libgpod/trunk/src/db-artwork-parser.c       2008-01-29 23:33:29 UTC (rev 
1943)
+++ libgpod/trunk/src/db-artwork-parser.c       2008-02-02 18:16:28 UTC (rev 
1944)
@@ -309,6 +309,7 @@
            g_free (mhod_ctx);
            mhod_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
        }
+        g_free (mhod_ctx);
        return 0;
 }
 
@@ -393,6 +394,7 @@
                g_free (mhia_ctx);
                mhia_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
        }
+        g_free (mhia_ctx);
        photodb = db_get_photodb (ctx->db);
        g_return_val_if_fail (photodb, -1);
        photodb->photoalbums = g_list_append (photodb->photoalbums,
@@ -433,6 +435,7 @@
                g_free (mhi_ctx);
                mhi_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
        }
+        g_free (mhi_ctx);
 
        return 0;
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to