summaryrefslogtreecommitdiffstats
path: root/src/itdb_photoalbum.c
diff options
context:
space:
mode:
authorphantom_sf <phantom_sf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-08-09 17:00:34 +0000
committerphantom_sf <phantom_sf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-08-09 17:00:34 +0000
commitb5623e36a85a491318198bf8e5013b0eb018e748 (patch)
tree969140235d5b8138455c45c31870d9ad8f06e8f1 /src/itdb_photoalbum.c
parent07e4589f9a6bec310b82fdf63705f5b138c268be (diff)
downloadlibgpod-b5623e36a85a491318198bf8e5013b0eb018e748.tar.gz
libgpod-b5623e36a85a491318198bf8e5013b0eb018e748.tar.xz
libgpod-b5623e36a85a491318198bf8e5013b0eb018e748.zip
2008-08-09 Paul Richardson <phantom_sf at users.sourceforge.net>
* Added eclipse project related files to svn:ignore * src/db-artwork-parser.c src/itdb.h src/itdb_photoalbum.c: Added to Itdb_PhotoAlbum, a reference to its parent Photo DB. When albums are constructed upon loading of the Photo DB, the reference is added as part of initialisation. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2096 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb_photoalbum.c')
-rw-r--r--src/itdb_photoalbum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/itdb_photoalbum.c b/src/itdb_photoalbum.c
index 747c17e..a5e9d76 100644
--- a/src/itdb_photoalbum.c
+++ b/src/itdb_photoalbum.c
@@ -335,6 +335,7 @@ static void itdb_photodb_photoalbum_free (Itdb_PhotoAlbum *album)
{
if (album)
{
+ album->photodb = NULL;
g_free (album->name);
g_list_free (album->members);
@@ -735,6 +736,7 @@ Itdb_PhotoAlbum *itdb_photodb_photoalbum_create (Itdb_PhotoDB *db,
album = g_new0 (Itdb_PhotoAlbum, 1);
album->album_type = 2; /* normal album, set to 1 for Photo Library */
+ album->photodb = db;
album->name = g_strdup(albumname);
db->photoalbums = g_list_insert (db->photoalbums, album, pos);