* src/folder.c
[claws.git] / src / folder.c
index ac954fe46a77126a84a493d39752b2129a6ea48e..33d1498d8b7cada21df8f1e641750c0dbefb5751 100644 (file)
@@ -144,9 +144,9 @@ void folder_remote_folder_init(Folder *folder, const gchar *name,
 void folder_destroy(Folder *folder)
 {
        g_return_if_fail(folder != NULL);
-       
-       if (folder->destroy)
-               folder->destroy(folder);
+       g_return_if_fail(folder->destroy != NULL);
+
+       folder->destroy(folder);
 
        folder_list = g_list_remove(folder_list, folder);