X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpluginserver.C;h=8feb6ed612ce35dfab061837d629aafb19915125;hb=86bd203ac1fc29d93f63d13e2979468f06bdc3a2;hp=a3fd1e542092dccd6eba2f9f2aa5b0c877d79821;hpb=0a0a29dd9e484b5622b46173d51bb6cefc0a5da4;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/pluginserver.C b/cinelerra-5.1/cinelerra/pluginserver.C index a3fd1e54..8feb6ed6 100644 --- a/cinelerra-5.1/cinelerra/pluginserver.C +++ b/cinelerra-5.1/cinelerra/pluginserver.C @@ -271,7 +271,7 @@ int PluginServer::get_synthesis() void PluginServer::set_title(const char *string) { - if(title) delete [] title; + delete [] title; title = cstrdup(string); } @@ -1257,7 +1257,7 @@ VFrame *PluginServer::get_plugin_images() return VFramePng::vframe_png(png_path,0,0); char png_name[BCSTRLEN]; get_plugin_png_name(png_name); - unsigned char *data = mwindow->theme->get_image_data(png_name); + unsigned char *data = mwindow->theme->get_image_data(png_name, 0); return data ? new VFramePng(data, 0.) : 0; }