aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_canvas3d_texture.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-08-29 09:26:15 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-29 17:17:08 +0200
commit9e0a285eea9753ed8f6999c1813d43724faf0c31 (patch)
tree6bc9977f44e6c9940bc887efb20ccfe4c9d8c01f /src/lib/evas/canvas/evas_canvas3d_texture.c
parentefl_ui/alert_popup: always create button layout (diff)
downloadefl-9e0a285eea9753ed8f6999c1813d43724faf0c31.tar.gz
efl: implement efl.file::unload for classes that implement load
unload is a crucial method for classes that implement load, as this is the method which is called during e.g., efl_file_simple_load() when a new file is specified in order to destroy the previous object data Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9786
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_texture.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_canvas3d_texture.c b/src/lib/evas/canvas/evas_canvas3d_texture.c
index 7154e7e7a1..0381c87275 100644
--- a/src/lib/evas/canvas/evas_canvas3d_texture.c
+++ b/src/lib/evas/canvas/evas_canvas3d_texture.c
@@ -373,6 +373,15 @@ _evas_canvas3d_texture_data_set(Eo *obj, Evas_Canvas3D_Texture_Data *pd,
evas_canvas3d_object_change(obj, EVAS_CANVAS3D_STATE_TEXTURE_DATA, NULL);
}
+EOLIAN static void
+_evas_canvas3d_texture_efl_file_unload(Eo *obj, Evas_Canvas3D_Texture_Data *pd)
+{
+ efl_file_unload(efl_super(obj, MY_CLASS));
+ eina_file_close(pd->f); // close matching open (matches open in _evas_canvas3d_texture_efl_file_load) OK
+ pd->f = NULL;
+ _texture_fini(obj);
+}
+
EOLIAN static Eina_Error
_evas_canvas3d_texture_efl_file_load(Eo *obj, Evas_Canvas3D_Texture_Data *pd)
{