Merge missing code from 2.4 branch 96/49796/1 accepted/tizen/mobile/20151021.013248 submit/tizen_mobile/20151020.134614
authorPrakash <prakashc.p@samsung.com>
Tue, 20 Oct 2015 10:27:13 +0000 (15:57 +0530)
committerPrakash <prakashc.p@samsung.com>
Tue, 20 Oct 2015 10:27:13 +0000 (15:57 +0530)
Change-Id: Iab92a6d4c8d85b8b98e494dc3435c0b77b7ec741
Signed-off-by: Prakash <prakashc.p@samsung.com>
src/features/gl-main.c
widget/src/gl_widget_main.c

index 7002ebdfe2cc1f0a513ef993e37b21dabacc14e3..bbf0537ea2238b60d533625bff81af257291ccf1 100644 (file)
@@ -396,9 +396,7 @@ int _gl_main_create_view(gl_appdata *ad)
        GL_CHECK_VAL(ad->maininfo.bg, -1);
        /*gallery should appear on phone side when target works on desktop mode*/
        const char *str = "mobile";
-#if 0
-       elm_win_profiles_set(ad->maininfo.win, &str, 1);
-#endif
+
        /*
         * Set Opacity before Conformant window create
         * When create Conformant Window, it will read currect Opacity and auto send it.
index d80397f336fbbafbc91fd681ac7d1c104912a138..caf04491d986a29097f92db6a2d971e9471333bf 100644 (file)
@@ -94,6 +94,15 @@ int widget_Destroy(widget_context_h context, widget_app_destroy_type_e reason, b
        if (widget_data->timer) {
                ecore_timer_del(widget_data->timer);
        }
+       if (widget_data->selected_images) {
+               int i = 0;
+               for (i = 0; i < widget_data->selected_count; i++) {
+                       if (widget_data->selected_images[i]) {
+                               free(widget_data->selected_images[i]);
+                       }
+               }
+               free(widget_data->selected_images);
+       }
        free(widget_data);
 
        remove("/opt/usr/media/selectedimages.eet");