aboutsummaryrefslogtreecommitdiffstats
path: root/src/textprop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c
index bd09304ba3b..2eea2d20839 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -660,6 +660,7 @@ get_char_property_and_overlay (Lisp_Object position, register Lisp_Object prop,
660 660
661 set_buffer_temp (XBUFFER (object)); 661 set_buffer_temp (XBUFFER (object));
662 662
663 USE_SAFE_ALLOCA;
663 GET_OVERLAYS_AT (XINT (position), overlay_vec, noverlays, NULL, 0); 664 GET_OVERLAYS_AT (XINT (position), overlay_vec, noverlays, NULL, 0);
664 noverlays = sort_overlays (overlay_vec, noverlays, w); 665 noverlays = sort_overlays (overlay_vec, noverlays, w);
665 666
@@ -674,9 +675,11 @@ get_char_property_and_overlay (Lisp_Object position, register Lisp_Object prop,
674 if (overlay) 675 if (overlay)
675 /* Return the overlay we got the property from. */ 676 /* Return the overlay we got the property from. */
676 *overlay = overlay_vec[noverlays]; 677 *overlay = overlay_vec[noverlays];
678 SAFE_FREE ();
677 return tem; 679 return tem;
678 } 680 }
679 } 681 }
682 SAFE_FREE ();
680 } 683 }
681 684
682 if (overlay) 685 if (overlay)