diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-29 22:48:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-29 22:48:11 +0000 |
commit | 3672538597c0abee1e922d5d6cc426273b10849a (patch) | |
tree | 6bf4eceb0957ac1ec362ff965e0121c01a07e807 /src/fs/fs_file_information.c | |
parent | 40d4dff74eaae781fb99cea505457738c4601e47 (diff) | |
download | gnunet-3672538597c0abee1e922d5d6cc426273b10849a.tar.gz gnunet-3672538597c0abee1e922d5d6cc426273b10849a.zip |
fi deserialization
Diffstat (limited to 'src/fs/fs_file_information.c')
-rw-r--r-- | src/fs/fs_file_information.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c index 8a5360db1..40fc88432 100644 --- a/src/fs/fs_file_information.c +++ b/src/fs/fs_file_information.c | |||
@@ -849,7 +849,9 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
849 | else | 849 | else |
850 | { | 850 | { |
851 | /* call clean-up function of the reader */ | 851 | /* call clean-up function of the reader */ |
852 | fi->data.file.reader (fi->data.file.reader_cls, 0, 0, NULL, NULL); | 852 | if (fi->data.file.reader != NULL) |
853 | fi->data.file.reader (fi->data.file.reader_cls, 0, 0, | ||
854 | NULL, NULL); | ||
853 | /* clean up client-info */ | 855 | /* clean up client-info */ |
854 | if (NULL != cleaner) | 856 | if (NULL != cleaner) |
855 | cleaner (cleaner_cls, | 857 | cleaner (cleaner_cls, |
@@ -874,7 +876,8 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
874 | fi->serialization); | 876 | fi->serialization); |
875 | if (NULL != fi->keywords) | 877 | if (NULL != fi->keywords) |
876 | GNUNET_FS_uri_destroy (fi->keywords); | 878 | GNUNET_FS_uri_destroy (fi->keywords); |
877 | GNUNET_CONTAINER_meta_data_destroy (fi->meta); | 879 | if (NULL != fi->meta) |
880 | GNUNET_CONTAINER_meta_data_destroy (fi->meta); | ||
878 | GNUNET_free_non_null (fi->serialization); | 881 | GNUNET_free_non_null (fi->serialization); |
879 | if (fi->te != NULL) | 882 | if (fi->te != NULL) |
880 | { | 883 | { |