[elm_glview] initialize to NULL after free function 24/117024/2
authorJoogab Yun <joogab.yun@samsung.com>
Thu, 9 Feb 2017 00:55:36 +0000 (09:55 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 7 Mar 2017 01:10:04 +0000 (17:10 -0800)
Change-Id: I58ffda7e99f59de8fe1921bc2f032e5bef29ff2a

src/lib/elm_glview.c

index bea3a7bde34fc4cddfb78ede411a5c5a604a6b20..b59ecc04b98399876331942e1143e35938b5a686 100644 (file)
@@ -293,6 +293,10 @@ _elm_glview_evas_object_smart_del(Eo *obj, Elm_Glview_Data *sd)
    if (sd->config) evas_gl_config_free(sd->config);
    if (sd->evasgl) evas_gl_free(sd->evasgl);
 
+   sd->context = NULL;
+   sd->config = NULL;
+   sd->evasgl = NULL;
+
    eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
 }