Release version 0.10.19
[platform/core/multimedia/libmm-camcorder.git] / test / mm_camcorder_testsuite.c
index 3a795e8..9bdc7df 100644 (file)
@@ -1400,7 +1400,7 @@ static void setting_menu(gchar buf)
                                        }
                                        err = scanf("%d",&idx);
 
-                                       if( idx > 0 && idx <= count ) {
+                                       if( idx > 0 && idx <= count && count <= 30) {
                                                bret = camcordertest_set_attr_int("camera-shutter-speed", array[idx-1]);
                                        }
                                }
@@ -2303,9 +2303,6 @@ static gboolean msg_callback(int message, void *msg_param, void *user_param)
                                g_print("*******************************************************\n");
                                g_print("[Camcorder Testsuite] Camcorder Captured(filename=%s)\n", report->recording_filename);
                                g_print("*******************************************************\n");
-
-                               SAFE_FREE (report->recording_filename);
-                               SAFE_FREE (report);
                        } else {
                                g_print( "[Camcorder Testsuite] report is NULL.\n" );
                        }