fileselector: Fixed wrong allocation in _custom_filter_append
authorRyuan Choi <ryuan.choi@gmail.com>
Wed, 1 Jan 2014 06:20:24 +0000 (15:20 +0900)
committerRyuan Choi <ryuan.choi@gmail.com>
Wed, 1 Jan 2014 06:32:32 +0000 (15:32 +0900)
Reported as CID:1147526 by Coverity Scan

legacy/elementary/src/lib/elc_fileselector.c

index 35b8230..d1895bc 100644 (file)
@@ -2024,7 +2024,7 @@ _custom_filter_append(Eo *obj, void *_pd, va_list *list)
    ff = _filter_add(sd, filter_name ? filter_name : "custom");
    ff->filter_type = ELM_FILESELECTOR_CUSTOM_FILTER;
 
-   ff->filter.custom = malloc(sizeof(Elm_Fileselector_Filter_Func));
+   ff->filter.custom = malloc(sizeof(Elm_Fileselector_Custom_Filter));
    ff->filter.custom->func = func;
    ff->filter.custom->data = data;