mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 06:35:57 -05:00
add missing web interface files, fix minor memory leak in event handler
This commit is contained in:
parent
703221c715
commit
3eef14e1cf
@ -42,6 +42,7 @@ PLUGIN_INFO *plugin_info(void) {
|
||||
return &_pi;
|
||||
}
|
||||
|
||||
/** NO LOG IN HERE! We'll go into an endless loop. :) */
|
||||
void plugin_handler(int event_id, int intval, void *vp, int len) {
|
||||
int total_len = 3 * sizeof(int) + len + 1;
|
||||
PLUGIN_MSG *pmsg;
|
||||
@ -62,8 +63,10 @@ void plugin_handler(int event_id, int intval, void *vp, int len) {
|
||||
memcpy(&pmsg->vp,vp,len);
|
||||
|
||||
sock = socket(AF_INET,SOCK_DGRAM,0);
|
||||
if(sock == INVALID_SOCKET)
|
||||
if(sock == INVALID_SOCKET) {
|
||||
free(pmsg);
|
||||
return;
|
||||
}
|
||||
|
||||
servaddr.sin_family = AF_INET;
|
||||
servaddr.sin_addr.s_addr = inet_addr("127.0.0.1");
|
||||
|
@ -125,6 +125,7 @@ Section "MainSection" SEC01
|
||||
SetOutPath "$2\admin-root"
|
||||
File "${ADMIN_ROOT}\thanks.html"
|
||||
File "${ADMIN_ROOT}\status.html"
|
||||
File "${ADMIN_ROOT}\status.js"
|
||||
File "${ADMIN_ROOT}\smartpopup.html"
|
||||
File "${ADMIN_ROOT}\smart.js"
|
||||
File "${ADMIN_ROOT}\smart.html"
|
||||
@ -148,6 +149,7 @@ Section "MainSection" SEC01
|
||||
File "${ADMIN_ROOT}\config-update.html"
|
||||
File "${ADMIN_ROOT}\config.html"
|
||||
File "${ADMIN_ROOT}\config.js"
|
||||
File "${ADMIN_ROOT}\config.xml"
|
||||
File "${ADMIN_ROOT}\aspl-license.txt"
|
||||
File "${ADMIN_ROOT}\aspl-license.html"
|
||||
File "${ADMIN_ROOT}\applet.html"
|
||||
@ -430,8 +432,10 @@ Section Uninstall
|
||||
Delete "$INSTDIR\admin-root\smart.js"
|
||||
Delete "$INSTDIR\admin-root\smartpopup.html"
|
||||
Delete "$INSTDIR\admin-root\status.html"
|
||||
Delete "$INSTDIR\admin-root\status.js"
|
||||
Delete "$INSTDIR\admin-root\thanks.html"
|
||||
Delete "$INSTDIR\admin-root\config.js"
|
||||
Delete "$INSTDIR\admin-root\config.xml"
|
||||
Delete "$INSTDIR\admin-root\lib-js\prototype.js"
|
||||
Delete "$INSTDIR\admin-root\lib-js\rico.js"
|
||||
Delete "$INSTDIR\admin-root\lib-js\script.aculo.us\builder.js"
|
||||
|
Loading…
Reference in New Issue
Block a user