Fix bug in m3u scanner

This commit is contained in:
ejurgensen
2014-04-18 13:08:31 +02:00
parent 2dfa64abcf
commit 35e9b3dc30
2 changed files with 15 additions and 23 deletions

View File

@@ -326,6 +326,8 @@ free_pi(struct pairing_info *pi, int content_only)
if (!content_only)
free(pi);
else
memset(pi, 0, sizeof(struct pairing_info));
}
void
@@ -402,6 +404,8 @@ free_mfi(struct media_file_info *mfi, int content_only)
if (!content_only)
free(mfi);
else
memset(mfi, 0, sizeof(struct media_file_info));
}
void
@@ -452,6 +456,8 @@ free_pli(struct playlist_info *pli, int content_only)
if (!content_only)
free(pli);
else
memset(pli, 0, sizeof(struct playlist_info));
}