Commit 51807325 authored by aa's avatar aa

change gui_drawimage_free to gui_image_free

parent f6a5677a
Pipeline #1094 failed with stage
in 0 seconds
......@@ -465,7 +465,7 @@ static void image_setwidget(void)
static void image_free(t_image *x)
{
//sys_vgui("image delete img%x\n", x);
gui_vmess("gui_drawimage_free", "x", x);
gui_vmess("gui_image_free", "x", x);
if (x->x_receive)
{
pd_unbind(&x->x_obj.ob_pd,x->x_receive);
......
......@@ -305,8 +305,8 @@ static void imagebang_free(t_imagebang *x) {
sprintf(key_a, "%lx_a", (long unsigned int)x);
sprintf(key_b, "%lx_b", (long unsigned int)x);
gui_vmess("gui_drawimage_free", "s", key_a);
gui_vmess("gui_drawimage_free", "s", key_b);
gui_vmess("gui_image_free", "s", key_a);
gui_vmess("gui_image_free", "s", key_b);
if (x->receive) {
pd_unbind(&x->x_obj.ob_pd,x->receive);
}
......
......@@ -3619,7 +3619,7 @@ function gui_drawimage_new(obj_tag, file_path, canvasdir, flags) {
pd_cache.set(obj_tag, drawimage_data); // add the data to container
}
function gui_drawimage_free(obj_tag) {
function gui_image_free(obj_tag) {
var c = pd_cache.get(obj_tag);
if (c) {
pd_cache.free(obj_tag); // empty the image(s)
......
......@@ -8499,7 +8499,7 @@ static void drawimage_free(t_drawimage *x)
//sprintf(buf, ".x%lx", (t_int)x);
sprintf(buf, "x%lx", (long unsigned int)x);
pd_unbind(&x->x_obj.ob_pd, gensym(buf));
gui_vmess("gui_drawimage_free", "x", x);
gui_vmess("gui_image_free", "x", x);
}
static void drawimage_setup(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment