mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-26 15:58:51 -04:00
libobs: Fix null pointer dereference
How this was replicated: - Create new VLC video source - Add video in its properties - Press cancel on the properties dialog to reset the settings
This commit is contained in:
1 parent
50d98dceac
commit
58265e6950
1 file changed
+4
-1
+4
-1
@@ -156,10 +156,13 @@ static inline obs_data_t *get_item_autoselect_obj(struct obs_data_item *item)
|
||||
|
||||
static inline obs_data_array_t *get_item_array(struct obs_data_item *item)
|
||||
{
|
||||
obs_data_array_t **array;
|
||||
|
||||
if (!item)
|
||||
return NULL;
|
||||
|
||||
return *(obs_data_array_t**)get_item_data(item);
|
||||
array = (obs_data_array_t**)get_item_data(item);
|
||||
return array ? *array : NULL;
|
||||
}
|
||||
|
||||
static inline obs_data_array_t *get_item_default_array(
|
||||
|
||||
Reference in new issue
Block a user