Typo: __LINUX__ was used in a conditional code block, while the rest of
the code uses __linux__
data: free_text_objects(...) #define's 'data' to be 'obj->data' to make
the code more compact. The linux-specific parts of the code still
used obj->data, which should expand to obj->obj->data, which is
wrong.
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
free_iconv();
break;
#endif
-#ifdef __LINUX__
+#ifdef __linux__
case OBJ_disk_protect:
- free(obj->data.s);
+ free(data.s);
break;
case OBJ_if_up:
- free(obj->data.ifblock.s);
- free(obj->data.ifblock.str);
+ free(data.ifblock.s);
+ free(data.ifblock.str);
break;
case OBJ_if_gw:
- free(obj->data.ifblock.s);
- free(obj->data.ifblock.str);
+ free(data.ifblock.s);
+ free(data.ifblock.str);
case OBJ_gw_iface:
case OBJ_gw_ip:
if (info.gw_info.iface) {
}
break;
case OBJ_ioscheduler:
- if(obj->data.s)
- free(obj->data.s);
+ if(data.s)
+ free(data.s);
break;
#endif
#ifdef XMMS2