]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix memory leak on add channel 199/head
authorKristofer Karlsson <kristofer.karlsson@gmail.com>
Mon, 31 Dec 2012 12:39:18 +0000 (13:39 +0100)
committerKristofer Karlsson <kristofer.karlsson@gmail.com>
Mon, 31 Dec 2012 20:38:44 +0000 (21:38 +0100)
src/webui/extjs.c

index 059417c0b2f63bcf6e87bd0bdd61aae5cc1bbfd8..ca987e949a003fc06a4a5e03c2ff977b358bd74f 100644 (file)
@@ -487,6 +487,7 @@ extjs_channels(http_connection_t *hc, const char *remain, void *opaque)
     htsmsg_add_msg(out, "entries", array);
 
   } else if(!strcmp(op, "create")) {
+    htsmsg_destroy(out);
     out = build_record_channel(channel_create());
 
   } else if(!strcmp(op, "delete") && in != NULL) {