Fixed build error
authorJiman Cho <jiman.cho@samsung.com>
Fri, 22 Feb 2013 05:48:54 +0000 (14:48 +0900)
committerJiman Cho <jiman.cho@samsung.com>
Fri, 22 Feb 2013 05:48:54 +0000 (14:48 +0900)
viewer/src/email-viewer.c

index 2eacfe1..ed12819 100755 (executable)
@@ -22,7 +22,6 @@
 #include <app_service.h>
 #include <status.h>
 #include <calendar2.h>
-#include <media-util-register.h>
 #include <contacts-ug.h>
 
 #include "email-viewer.h"
@@ -4798,10 +4797,10 @@ static void _show_attachment(EmailViewerUGD *ug_data, int index)
                        }
 
                        g_free(raw_data);
-                       calendar_list_destroy(list, true);
+                       if (list)
+                               calendar_list_destroy(list, true);
                        calendar_disconnect();
-               } else
-                       media_file_register(newpath);
+               }
        } else if (res == EMAIL_EXT_SAVE_ERR_ALREADY_EXIST && !ug_data->display_download_result) {
                _create_notify(ug_data, _("IDS_EMAIL_POP_ALERT"),
                                                dgettext("sys_string", "IDS_COM_POP_ALREDY_EXISTS"), 0,