Skip to content

Commit

Permalink
fix hotkeys for move filters
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Jul 13, 2022
1 parent 8160f6a commit 113fa91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.12..4.0)

project(move-transition VERSION 2.6.0)
project(move-transition VERSION 2.6.1)
set(PROJECT_FULL_NAME "Move Transition")

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_SOURCE_DIR}/version.h)
Expand Down
3 changes: 2 additions & 1 deletion move-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ void move_filter_init(struct move_filter *move_filter, obs_source_t *source,

void move_filter_destroy(struct move_filter *move_filter)
{
bfree(move_filter->filter_name);
bfree(move_filter->simultaneous_move_name);
bfree(move_filter->next_move_name);

Expand All @@ -34,7 +35,7 @@ void move_filter_update(struct move_filter *move_filter, obs_data_t *settings)
if (!move_filter->filter_name ||
strcmp(move_filter->filter_name, filter_name) != 0) {
bfree(move_filter->filter_name);
move_filter->filter_name = NULL;
move_filter->filter_name = bstrdup(filter_name);
if (move_filter->move_start_hotkey != OBS_INVALID_HOTKEY_ID) {
obs_hotkey_unregister(move_filter->move_start_hotkey);
move_filter->move_start_hotkey = OBS_INVALID_HOTKEY_ID;
Expand Down
2 changes: 1 addition & 1 deletion move-source-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ static void move_source_destroy(void *data)
}
}
move_source->scene_item = NULL;

move_filter_destroy(&move_source->move_filter);
bfree(move_source->source_name);
bfree(move_source);
}
Expand Down

0 comments on commit 113fa91

Please sign in to comment.